forked from interledger/uct-hackathon-2024
-
Notifications
You must be signed in to change notification settings - Fork 0
/
next.config.js
30 lines (28 loc) · 875 Bytes
/
next.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* eslint-disable @typescript-eslint/no-unsafe-return */
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-call */
/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
await import("./src/env.js");
import CopyPlugin from "copy-webpack-plugin";
/** @type {import("next").NextConfig} */
const config = {
webpack: (config) => {
// append the CopyPlugin to copy the file to your public dir
config.plugins.push(
new CopyPlugin({
patterns: [
{
from: "node_modules/@interledger/open-payments/dist/openapi/specs",
to: "server/vendor-chunks/specs",
},
],
}),
);
// Important: return the modified config
return config;
},
};
export default config;