Spaces:
Running
Running
Download apps/admin/next.config.js from Benaah/MicProtocol: direct link, hf CLI and curl.
- Browser
- Download file 1.01 kB
-
https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/admin/next.config.js
- Command line
-
hf download hf://spaces/Benaah/MicProtocol/apps/admin/next.config.js
-
curl -L -o next.config.js https://huggingface.co/spaces/Benaah/MicProtocol/resolve/main/apps/admin/next.config.js
1.01 kB
| /** @type {import('next').NextConfig} */ | |
| const path = require("path"); | |
| const nextConfig = { | |
| reactStrictMode: true, | |
| transpilePackages: ["@micprotocol/shared-types", "@micprotocol/ui"], | |
| output: process.env.DOCKER_BUILD ? "standalone" : undefined, | |
| poweredByHeader: false, | |
| compress: true, | |
| // Admin never uses Prisma at runtime; @micprotocol/api is imported as | |
| // `import type` (erased at compile time). Skip type-checking in Docker | |
| // builds since the Prisma generated client isn't available in this image. | |
| typescript: process.env.DOCKER_BUILD ? { ignoreBuildErrors: true } : undefined, | |
| turbopack: { | |
| root: path.resolve(__dirname, "../.."), | |
| }, | |
| async rewrites() { | |
| return [ | |
| { | |
| source: "/api/:path*", | |
| destination: `${process.env.API_URL || "http://localhost:4000"}/api/:path*`, | |
| }, | |
| { | |
| source: "/trpc/:path*", | |
| destination: `${process.env.API_URL || "http://localhost:4000"}/trpc/:path*`, | |
| }, | |
| ]; | |
| }, | |
| }; | |
| module.exports = nextConfig; | |