-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
184 changed files
with
2,215 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+21.8 KB
.yarn/cache/@cloudflare-kv-asset-handler-npm-0.3.4-9856cd2d86-f02840c2da.zip
Binary file not shown.
Binary file added
BIN
+243 KB
.yarn/cache/@cloudflare-next-on-pages-npm-1.13.7-65fb0a16da-a5ef8b5808.zip
Binary file not shown.
Binary file added
BIN
+29.3 MB
.yarn/cache/@cloudflare-workerd-darwin-64-npm-1.20250124.0-93e52c9a35-10.zip
Binary file not shown.
Binary file added
BIN
+28 MB
.yarn/cache/@cloudflare-workerd-darwin-arm64-npm-1.20250124.0-109f27a755-10.zip
Binary file not shown.
Binary file added
BIN
+32.7 MB
.yarn/cache/@cloudflare-workerd-linux-64-npm-1.20250124.0-eb8ddef999-10.zip
Binary file not shown.
Binary file added
BIN
+32.9 MB
.yarn/cache/@cloudflare-workerd-linux-arm64-npm-1.20250124.0-7c9a8405cb-10.zip
Binary file not shown.
Binary file added
BIN
+27.7 MB
.yarn/cache/@cloudflare-workerd-windows-64-npm-1.20250124.0-179a92b43a-10.zip
Binary file not shown.
Binary file added
BIN
+34.2 KB
.yarn/cache/@cspotcode-source-map-support-npm-0.8.1-964f2de99d-b6e38a1712.zip
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+309 KB
.yarn/cache/@edge-runtime-node-utils-npm-2.3.0-193751d03e-8916be34bc.zip
Binary file not shown.
Binary file added
BIN
+8.1 KB
.yarn/cache/@edge-runtime-ponyfill-npm-2.4.2-feda97d7cc-27a15bd448.zip
Binary file not shown.
Binary file added
BIN
+172 KB
.yarn/cache/@edge-runtime-primitives-npm-4.1.0-48c24b96ef-6c36378939.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+29.2 KB
.yarn/cache/@esbuild-plugins-node-globals-polyfill-npm-0.2.3-8338d855c7-6452637b55.zip
Binary file not shown.
Binary file added
BIN
+22.8 KB
.yarn/cache/@esbuild-plugins-node-modules-polyfill-npm-0.2.2-f612681798-0f5601f0ce.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+27.5 KB
.yarn/cache/@jridgewell-trace-mapping-npm-0.3.9-91625cd7fb-83deafb8e7.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+7.45 KB
.yarn/cache/@vercel-gatsby-plugin-vercel-analytics-npm-1.0.11-f8b942c64d-1d57365ebe.zip
Binary file not shown.
Binary file added
BIN
+11.9 KB
.yarn/cache/@vercel-gatsby-plugin-vercel-builder-npm-2.0.63-0b3c1789ff-14ff2b1989.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+34.2 KB
.yarn/cache/@vercel-remix-builder-npm-5.0.2-8fd36f1da7-d44b525dc6.zip
Binary file not shown.
Binary file added
BIN
+21.1 KB
.yarn/cache/@vercel-routing-utils-npm-5.0.0-8081a79bac-7362637c74.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+10.6 KB
.yarn/cache/acorn-import-attributes-npm-1.9.5-d1e666eb35-8bfbfbb6e2.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+77.8 KB
.yarn/cache/package-manager-manager-npm-0.2.0-fe57feb5ec-9162304197.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+39.5 KB
.yarn/cache/printable-characters-npm-1.0.42-88f6789fd4-5fd9f44f2b.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added
BIN
+386 KB
.yarn/cache/rollup-plugin-node-polyfills-npm-0.2.1-d0e4f85f30-283c108108.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,9 @@ yarn-error.log* | |
|
||
# others | ||
.env*.local | ||
.env | ||
.vercel | ||
.wrangler | ||
next-env.d.ts | ||
*storybook.log | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import * as fs from "node:fs"; | ||
import * as path from "node:path"; | ||
|
||
const BUILD_LOG_PATH = path.join( | ||
process.cwd(), | ||
".vercel/output/static/_worker.js/nop-build-log.json", | ||
); | ||
const WORKER_DIR_PATH = path.join(process.cwd(), ".vercel/output/static/_worker.js"); | ||
|
||
const buildLog = JSON.parse(fs.readFileSync(BUILD_LOG_PATH, "utf8")); | ||
const nextEnv = buildLog.buildFiles.functions.edge[0].config.environment; | ||
const processEnv = process.env; | ||
|
||
const ENV_VARIABLES = {}; | ||
|
||
for (const key in nextEnv) { | ||
if (key.startsWith("__NEXT_PREVIEW_MODE")) { | ||
ENV_VARIABLES[key] = nextEnv[key]; | ||
} | ||
} | ||
|
||
for (const key in processEnv) { | ||
if (key.startsWith("SANITY")) { | ||
ENV_VARIABLES[key] = processEnv[key]; | ||
} | ||
} | ||
|
||
function traverseDirectory(directory, callback) { | ||
for (const entry of fs.readdirSync(directory, { withFileTypes: true })) { | ||
const fullPath = path.join(directory, entry.name); | ||
if (entry.isDirectory()) { | ||
traverseDirectory(fullPath, callback); | ||
} else { | ||
callback(fullPath); | ||
} | ||
} | ||
} | ||
|
||
function define(filePath) { | ||
if (!filePath.match(/\.js$/)) return; | ||
|
||
let fileContent = fs.readFileSync(filePath, "utf-8"); | ||
let updated = false; | ||
|
||
for (const key in ENV_VARIABLES) { | ||
const regex = new RegExp(`process\\.env\\.${key}`, "g"); | ||
const replaced = fileContent.replace(regex, JSON.stringify(ENV_VARIABLES[key])); | ||
if (replaced !== fileContent) { | ||
fileContent = replaced; | ||
updated = true; | ||
} | ||
} | ||
|
||
if (updated) { | ||
fs.writeFileSync(filePath, fileContent, "utf-8"); | ||
console.log(`Updated: ${filePath}`); | ||
} | ||
} | ||
|
||
traverseDirectory(WORKER_DIR_PATH, define); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
name = "seed-design-v3" | ||
compatibility_date = "2024-12-05" | ||
compatibility_flags = ["nodejs_compat"] | ||
pages_build_output_dir = ".vercel/output/static" |
Oops, something went wrong.