generated from t3-oss/create-t3-turbo
-
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
d586c6f
commit 90ec7cd
Showing
2 changed files
with
61 additions
and
25 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,61 @@ | ||
import type { NextConfig } from "next"; | ||
|
||
import { fileURLToPath } from "url"; | ||
import createJiti from "jiti"; | ||
|
||
// Import env files to validate at build time. Use jiti so we can load .ts files in here. | ||
createJiti(fileURLToPath(import.meta.url))("./src/env"); | ||
|
||
|
||
const config: NextConfig = { | ||
reactStrictMode: true, | ||
|
||
experimental: { | ||
// ppr: 'incremental', | ||
after: true, | ||
cssChunking: "loose", // default | ||
// how many times Next.js will retry failed page generation attempts | ||
// before failing the build | ||
staticGenerationRetryCount: 1, | ||
// how many pages will be processed per worker | ||
staticGenerationMaxConcurrency: 8, | ||
// the minimum number of pages before spinning up a new export worker | ||
staticGenerationMinPagesPerWorker: 25, | ||
}, | ||
|
||
expireTime: 3600, | ||
|
||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: "https", | ||
hostname: "pokepast.es", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "raw.githubusercontent.com", | ||
}, | ||
{ | ||
protocol: "https", | ||
hostname: "limitlesstcg.s3.us-east-2.amazonaws.com", | ||
}, | ||
], | ||
}, | ||
|
||
/** Enables hot reloading for local packages without a build step */ | ||
transpilePackages: [ | ||
"@battle-stadium/api", | ||
"@battle-stadium/auth", | ||
"@battle-stadium/db", | ||
"@battle-stadium/ui", | ||
"@battle-stadium/validators", | ||
], | ||
|
||
/** We already do linting and typechecking as separate tasks in CI */ | ||
eslint: { ignoreDuringBuilds: true }, | ||
typescript: { ignoreBuildErrors: true }, | ||
|
||
|
||
}; | ||
|
||
export default config; |