initial 2
Some checks failed
CI / test (push) Has been cancelled

This commit is contained in:
2026-06-26 09:26:50 +01:00
parent 194330fb47
commit 3b37368e7d
213 changed files with 14688 additions and 1 deletions

25
apps/web/next.config.ts Executable file
View File

@@ -0,0 +1,25 @@
import type { NextConfig } from "next";
import path from "path";
import withSerwistInit from "@serwist/next";
const withSerwist = withSerwistInit({
swSrc: "src/sw.ts",
swDest: "public/sw.js",
disable: process.env.NODE_ENV === "development",
});
const nextConfig: NextConfig = {
output: "standalone",
outputFileTracingRoot: path.join(__dirname, "../../"),
transpilePackages: ["@adventureos/shared", "@adventureos/db"],
serverExternalPackages: ["postgres"],
webpack: (config) => {
config.resolve.alias = {
...(config.resolve.alias ?? {}),
"@": path.join(__dirname, "src"),
};
return config;
},
};
export default withSerwist(nextConfig);