reporting
This commit is contained in:
parent
04e9827df6
commit
a53994a718
@ -2,6 +2,14 @@
|
|||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
reactStrictMode: true,
|
reactStrictMode: true,
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
|
async rewrites() {
|
||||||
|
return [
|
||||||
|
{
|
||||||
|
source: '/api/:path*',
|
||||||
|
destination: 'https://f1setup.deta.dev/:path*',
|
||||||
|
},
|
||||||
|
]
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = nextConfig
|
module.exports = nextConfig
|
||||||
|
@ -315,7 +315,7 @@ export function Calculator({ target }) {
|
|||||||
)
|
)
|
||||||
|
|
||||||
if (v === "optimal") {
|
if (v === "optimal") {
|
||||||
fetch(`https://f1setup.deta.dev/report`, {
|
fetch(`/api/report`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Accept': 'application/json',
|
'Accept': 'application/json',
|
||||||
|
Loading…
Reference in New Issue
Block a user