mirror of https://github.com/buster-so/buster.git
Added additional variable to turbo
This commit is contained in:
parent
0ee027eb99
commit
7ceb08449f
|
@ -93,3 +93,4 @@ drizzle/meta/
|
|||
apps/web/.env.prod
|
||||
apps/web/.env.production
|
||||
apps/web/.env.staging
|
||||
.vercel
|
||||
|
|
|
@ -18,3 +18,4 @@ storybook-static
|
|||
.env.staging
|
||||
.env.dev
|
||||
.env.local
|
||||
.vercel
|
||||
|
|
|
@ -2,25 +2,22 @@
|
|||
"name": "@buster-app/web",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"version": "0.0.2",
|
||||
"version": "0.0.3",
|
||||
"scripts": {
|
||||
"prebuild": "tsx scripts/validate-env.ts",
|
||||
"build": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build -- --typecheck",
|
||||
"build:staging": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode staging",
|
||||
"build:staging": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode staging -- --typecheck",
|
||||
"build:production": "cross-env NODE_OPTIONS=--max-old-space-size=8192 vite build --mode production -- --typecheck",
|
||||
"build:local": "pnpm prebuild && cross-env NODE_OPTIONS=--max-old-space-size=12288 vite build -- --typecheck --local",
|
||||
"build-storybook": "storybook build",
|
||||
"build:visualize": "npx vite-bundle-visualizer",
|
||||
"deploy:dev": "pnpm run build && npx wrangler deploy .output/server/index.mjs --env dev --assets .output/public",
|
||||
"deploy:production": "pnpm run build:production && npx wrangler deploy .output/server/index.mjs --env production --assets .output/public",
|
||||
"deploy:staging": "pnpm run build:staging && npx wrangler deploy .output/server/index.mjs --env staging --assets .output/public",
|
||||
"dev": "vite dev --port 3000",
|
||||
"dev:fast": "pnpm run build:local && pnpm run start:bun",
|
||||
"generate-routes": "tsr generate",
|
||||
"lint": "biome check --write",
|
||||
"serve": "vite preview",
|
||||
"start": "echo 'For Cloudflare deployment, no start command is needed. Use start:local for local builds or start:wrangler for Cloudflare Workers dev'",
|
||||
"start:bun": "bun .output/server/index.mjs",
|
||||
"start": "echo 'For Vercel deployment, no start command is needed. Use start:local for local builds'",
|
||||
"start:local": "bun .output/server/index.mjs",
|
||||
"storybook": "storybook dev -p 6006",
|
||||
"test": "vitest run",
|
||||
"test:ui": "vitest --ui",
|
||||
|
@ -42,7 +39,6 @@
|
|||
"@electric-sql/react": "^1.0.10",
|
||||
"@emoji-mart/data": "^1.2.1",
|
||||
"@faker-js/faker": "^10.0.0",
|
||||
"@modelcontextprotocol/sdk": "^1.17.5",
|
||||
"@monaco-editor/react": "^4.7.0",
|
||||
"@platejs/ai": "^50.1.2",
|
||||
"@platejs/autoformat": "^49.0.0",
|
||||
|
@ -105,21 +101,21 @@
|
|||
"@tanstack/query-async-storage-persister": "^5.87.4",
|
||||
"@tanstack/query-db-collection": "0.1.1",
|
||||
"@tanstack/query-sync-storage-persister": "^5.87.4",
|
||||
"@tanstack/react-db": "0.1.16",
|
||||
"@tanstack/react-db": "0.1.17",
|
||||
"@tanstack/react-devtools": "^0.6.7",
|
||||
"@tanstack/react-form": "^1.19.5",
|
||||
"@tanstack/react-query": "^5.87.4",
|
||||
"@tanstack/react-query-devtools": "^5.87.4",
|
||||
"@tanstack/react-query-persist-client": "^5.87.4",
|
||||
"@tanstack/react-router": "^1.131.40",
|
||||
"@tanstack/react-router-devtools": "^1.131.40",
|
||||
"@tanstack/react-router-ssr-query": "^1.131.40",
|
||||
"@tanstack/react-router": "^1.131.41",
|
||||
"@tanstack/react-router-devtools": "^1.131.41",
|
||||
"@tanstack/react-router-ssr-query": "^1.131.41",
|
||||
"@tanstack/react-router-with-query": "^1.130.17",
|
||||
"@tanstack/react-start": "^1.131.40",
|
||||
"@tanstack/react-start": "^1.131.41",
|
||||
"@tanstack/react-store": "^0.7.5",
|
||||
"@tanstack/react-table": "^8.21.3",
|
||||
"@tanstack/react-virtual": "^3.13.12",
|
||||
"@tanstack/router-plugin": "^1.131.40",
|
||||
"@tanstack/router-plugin": "^1.131.41",
|
||||
"@tanstack/store": "^0.7.5",
|
||||
"@testing-library/jest-dom": "^6.8.0",
|
||||
"@udecode/cn": "^49.0.15",
|
||||
|
@ -189,7 +185,7 @@
|
|||
"@storybook/addon-vitest": "^9.1.5",
|
||||
"@storybook/react-vite": "^9.1.5",
|
||||
"@tanstack/devtools-event-client": "^0.2.4",
|
||||
"@tanstack/router-cli": "^1.131.40",
|
||||
"@tanstack/router-cli": "^1.131.41",
|
||||
"@testing-library/dom": "^10.4.1",
|
||||
"@testing-library/react": "^16.3.0",
|
||||
"@types/canvas-confetti": "^1.9.0",
|
||||
|
@ -214,7 +210,6 @@
|
|||
"vite-plugin-monaco-editor": "^1.1.0",
|
||||
"vite-tsconfig-paths": "catalog:",
|
||||
"vitest": "catalog:",
|
||||
"web-vitals": "^5.1.0",
|
||||
"wrangler": "^4.35.0"
|
||||
"web-vitals": "^5.1.0"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -11,7 +11,7 @@ const config = defineConfig(({ command, mode }) => {
|
|||
const isTypecheck = process.argv.includes('--typecheck') || process.env.TYPECHECK === 'true';
|
||||
const useChecker = !process.env.VITEST && isBuild;
|
||||
const isLocalBuild = process.argv.includes('--local') || mode === 'development';
|
||||
const target = isLocalBuild ? ('bun' as const) : ('cloudflare-module' as const);
|
||||
const target = isLocalBuild ? ('bun' as const) : ('vercel' as const);
|
||||
|
||||
return {
|
||||
server: { port: 3000 },
|
||||
|
|
|
@ -1,66 +0,0 @@
|
|||
{
|
||||
"$schema": "node_modules/wrangler/config-schema.json",
|
||||
"name": "web",
|
||||
"main": "./.output/server/index.mjs",
|
||||
"compatibility_date": "2024-09-10",
|
||||
"compatibility_flags": ["nodejs_compat"],
|
||||
|
||||
"assets": {
|
||||
"directory": ".output/public",
|
||||
"binding": "ASSETS"
|
||||
},
|
||||
|
||||
"observability": {
|
||||
"enabled": true
|
||||
},
|
||||
|
||||
"env": {
|
||||
// Development Environment
|
||||
"dev": {
|
||||
"name": "web-dev",
|
||||
"vars": {
|
||||
// Development-specific variables can be set here
|
||||
// Or loaded from .env.dev file
|
||||
}
|
||||
},
|
||||
|
||||
// Staging Environment
|
||||
"staging": {
|
||||
"name": "web-staging",
|
||||
"routes": [
|
||||
{
|
||||
"pattern": "staging.buster.so",
|
||||
"custom_domain": true
|
||||
}
|
||||
],
|
||||
"vars": {
|
||||
"VITE_PUBLIC_API_URL": "https://api2staging.buster.so",
|
||||
"VITE_PUBLIC_URL": "https://staging.buster.so",
|
||||
"VITE_PUBLIC_SUPABASE_URL": "https://vlelrtlxoixvaynaudau.supabase.co",
|
||||
"VITE_PUBLIC_SUPABASE_ANON_KEY": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6InZsZWxydGx4b2l4dmF5bmF1ZGF1Iiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjM3MzEyNzgsImV4cCI6MjAzOTMwNzI3OH0.nK2gZggez6r_F00Ci_fcMXPle5HWo9boGQ5mG3CERFs",
|
||||
"VITE_PUBLIC_POSTHOG_KEY": "phc_CtxCFcicGmtdan7MnQTRc3AypAifI7FYsoVFv3WnCQc",
|
||||
"VITE_PUBLIC_API2_URL": "https://stagingapi.buster.so",
|
||||
"VITE_PUBLIC_ENABLE_TANSTACK_PANEL": "true"
|
||||
}
|
||||
},
|
||||
|
||||
// Production Environment
|
||||
"production": {
|
||||
"name": "web-production",
|
||||
// "routes": [
|
||||
// {
|
||||
// "pattern": "app.buster.so",
|
||||
// "custom_domain": true
|
||||
// }
|
||||
// ],
|
||||
"vars": {
|
||||
"VITE_PUBLIC_API_URL": "https://api.buster.so",
|
||||
"VITE_PUBLIC_URL": "https://platform.buster.so",
|
||||
"VITE_PUBLIC_SUPABASE_URL": "https://aofftppzkoydkyfrhrcj.supabase.co",
|
||||
"VITE_PUBLIC_SUPABASE_ANON_KEY": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJzdXBhYmFzZSIsInJlZiI6ImFvZmZ0cHB6a295ZGt5ZnJocmNqIiwicm9sZSI6ImFub24iLCJpYXQiOjE3MjYzNTUzNDUsImV4cCI6MjA0MTkzMTM0NX0.sg_4VkZDpVDO51bMBsAOhNdU_AAXnH8bGqeK3UHHe-Q",
|
||||
"VITE_PUBLIC_POSTHOG_KEY": "phc_CtxCFcicGmtdan7MnQTRc3AypAifI7FYsoVFv3WnCQc",
|
||||
"VITE_PUBLIC_API2_URL": "https://api2.buster.so"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1062
pnpm-lock.yaml
1062
pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -92,8 +92,7 @@
|
|||
"VITE_PUBLIC_WS_URL",
|
||||
"VITE_PUBLIC_POSTHOG_KEY",
|
||||
"VITE_PUBLIC_POSTHOG_HOST",
|
||||
"VITE_PUBLIC_POSTHOG_KEY",
|
||||
"VITE_PUBLIC_POSTHOG_HOST",
|
||||
"VITE_PUBLIC_ENABLE_TANSTACK_PANEL",
|
||||
|
||||
"VITE_SLACK_APP_SUPPORT_URL",
|
||||
"VITE_PRIVATE_SUPABASE_SERVICE_ROLE_KEY",
|
||||
|
|
Loading…
Reference in New Issue