init commit
This commit is contained in:
23
apps/nextjs/next.config.js
Normal file
23
apps/nextjs/next.config.js
Normal file
@@ -0,0 +1,23 @@
|
||||
import { createJiti } from "jiti";
|
||||
|
||||
const jiti = createJiti(import.meta.url);
|
||||
|
||||
// Import env files to validate at build time. Use jiti so we can load .ts files in here.
|
||||
await jiti.import("./src/env");
|
||||
|
||||
/** @type {import("next").NextConfig} */
|
||||
const config = {
|
||||
/** Enables hot reloading for local packages without a build step */
|
||||
transpilePackages: [
|
||||
"@acme/api",
|
||||
"@acme/auth",
|
||||
"@acme/db",
|
||||
"@acme/ui",
|
||||
"@acme/validators",
|
||||
],
|
||||
|
||||
/** We already do linting and typechecking as separate tasks in CI */
|
||||
typescript: { ignoreBuildErrors: true },
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user