deer-flow/web/next.config.js
2025-04-22 13:52:56 +08:00

31 lines
629 B
JavaScript

/**
* Run `build` or `dev` with `SKIP_ENV_VALIDATION` to skip env validation. This is especially useful
* for Docker builds.
*/
// Copyright (c) 2025 Bytedance Ltd. and/or its affiliates
// SPDX-License-Identifier: MIT
import "./src/env.js";
/** @type {import("next").NextConfig} */
const config = {
rewrites: async () => [
{
source: "/api/podcast/:path*",
destination: "http://localhost:8000/api/podcast/:path*",
},
],
experimental: {
turbo: {
rules: {
"*.md": {
loaders: ["raw-loader"],
as: "*.js",
},
},
},
},
};
export default config;