spb/crypto-trade-bot
Public
Python 54.7%
TypeScript 42.5%
SQL 1.9%
1import type { NextConfig } from "next";23const API_UPSTREAM = process.env.API_UPSTREAM ?? "http://127.0.0.1:8470";45const nextConfig: NextConfig = {6 reactStrictMode: true,7 poweredByHeader: false,8 turbopack: {9 rules: {10 "*.css": {11 loaders: ["@tailwindcss/turbopack"],12 as: "*.css",13 },14 },15 },16 async rewrites() {17 return [{ source: "/api/:path*", destination: `${API_UPSTREAM}/api/:path*` }];18 },19 async headers() {20 return [21 {22 source: "/(.*)",23 headers: [24 { key: "X-Frame-Options", value: "DENY" },25 { key: "X-Content-Type-Options", value: "nosniff" },26 { key: "Referrer-Policy", value: "same-origin" },27 ],28 },29 ];30 },31};3233export default nextConfig;34