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