Skip to content

Commit

Permalink
update next.config
Browse files Browse the repository at this point in the history
  • Loading branch information
thatguyinabeanie committed Nov 8, 2024
1 parent d586c6f commit 90ec7cd
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 25 deletions.
25 changes: 0 additions & 25 deletions apps/nextjs/next.config.js

This file was deleted.

61 changes: 61 additions & 0 deletions apps/nextjs/next.config.ts
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;

0 comments on commit 90ec7cd

Please sign in to comment.