Skip to content

Commit

Permalink
trying this new build mode to skip static page generation
Browse files Browse the repository at this point in the history
  • Loading branch information
noahgsolomon committed Jul 27, 2024
1 parent cf7abc4 commit cf2b974
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
const nextConfig = {
pageExtensions: ["js", "jsx", "ts", "tsx"],
staticPageGenerationTimeout: 100,

images: {
remotePatterns: [
{
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"build": "next build",
"build": "next build --build-mode=experimental-compile",
"db:push": "dotenv drizzle-kit push",
"db:studio": "dotenv drizzle-kit studio",
"dev": "sst dev sst dev sst dev next dev",
Expand Down Expand Up @@ -110,4 +110,4 @@
"tailwindcss": "latest",
"typescript": "^5"
}
}
}
4 changes: 3 additions & 1 deletion sst.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/// <reference path="./.sstpoop/platform/config.d.ts" />
/// <reference path="./.sst/platform/config.d.ts" />
import { NextEnv } from "./sst.env";

export default $config({
Expand All @@ -14,6 +14,8 @@ export default $config({
environment: {
...NextEnv,
},
buildCommand:
"npx --yes [email protected] build --build-mode=experimental-compile",
domain: {
name: "brainrotjs.com",
dns: sst.aws.dns({
Expand Down

0 comments on commit cf2b974

Please sign in to comment.