Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -997,6 +997,7 @@ jobs:
# lint's type-check and the `build` job's own `next build` (generated route types too)
# already enforce.
NEXT_BUILD_SKIP_TYPE_CHECK: 'true'
NEXT_BUILD_SKIP_SOURCE_MAPS: 'true'
run: bunx turbo run build --filter=@sim/app

# Everything `next start` reads, including the spreadsheet parse worker it spawns (named, so a
Expand Down
1 change: 1 addition & 0 deletions apps/sim/lib/core/config/env.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ export const env = createEnv({
// Infrastructure & Deployment
NEXT_RUNTIME: z.string().optional(), // Next.js runtime environment
DOCKER_BUILD: z.boolean().optional(), // Flag indicating Docker build environment
NEXT_BUILD_SKIP_SOURCE_MAPS: z.boolean().optional(), // Omits unused browser source maps in acceptance builds
NEXT_BUILD_SKIP_TYPE_CHECK: z.boolean().optional(), // Skips `next build`'s TypeScript pass where another CI job type-checks

// Background Jobs & Scheduling
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/next.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const nextConfig: NextConfig = {
// Safe here since this repo's source is already fully public on GitHub -
// no additional exposure versus Next's default (disabled to avoid leaking
// source on the client).
productionBrowserSourceMaps: true,
productionBrowserSourceMaps: !isTruthy(env.NEXT_BUILD_SKIP_SOURCE_MAPS),
turbopack: {
root: path.join(import.meta.dirname, '../..'),
},
Expand Down
2 changes: 1 addition & 1 deletion apps/sim/turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@
]
},
"build": {
"env": ["NEXT_BUILD_SKIP_TYPE_CHECK"],
"env": ["NEXT_BUILD_SKIP_SOURCE_MAPS", "NEXT_BUILD_SKIP_TYPE_CHECK"],
"inputs": [
"$TURBO_DEFAULT$",
".env*",
Expand Down
Loading