-
Notifications
You must be signed in to change notification settings - Fork 3
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
87c8bd5
commit 89698ab
Showing
5 changed files
with
11 additions
and
29 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,27 +1,26 @@ | ||
// @ts-check | ||
/** | ||
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. | ||
* This is especially useful for Docker builds. | ||
*/ | ||
!process.env.SKIP_ENV_VALIDATION && (await import("./src/env/server.mjs")); | ||
!process.env.SKIP_ENV_VALIDATION && (await import('./src/env/server.mjs')) | ||
|
||
import { PrismaPlugin } from "@prisma/nextjs-monorepo-workaround-plugin"; | ||
import { PrismaPlugin } from '@prisma/nextjs-monorepo-workaround-plugin' | ||
|
||
/** @type {import("next").NextConfig} */ | ||
const config = { | ||
webpack: (config, { isServer }) => { | ||
if (isServer) { | ||
config.plugins = [...config.plugins, new PrismaPlugin()] | ||
} | ||
return config | ||
return config | ||
}, | ||
reactStrictMode: true, | ||
swcMinify: true, | ||
transpilePackages: ["@acme/api", "@acme/db"], | ||
transpilePackages: ['@acme/api', '@acme/db'], | ||
// We already do linting on GH actions | ||
eslint: { | ||
ignoreDuringBuilds: !!process.env.CI, | ||
}, | ||
}; | ||
} | ||
|
||
export default config; | ||
export default config |
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
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
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
This file was deleted.
Oops, something went wrong.