Skip to content

Commit

Permalink
comment out next config
Browse files Browse the repository at this point in the history
  • Loading branch information
jwkaterina committed Mar 3, 2024
1 parent f014e3d commit 7226a85
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
async rewrites() {
return [
{
source: '/api/:path*',
destination: 'http://localhost:5001/api/:path*'
},
{
source: '/foods/:path*',
destination: 'http://localhost:5001/foods/:path*'
},
{
source: '/recipes/:path*',
destination: 'http://localhost:5001/recipes/:path*'
},
{
source: '/users/:path*',
destination: 'http://localhost:5001/users/:path*'
},
{
source: '/menus/:path*',
destination: 'http://localhost:5001/menus/:path*'
}
]
}
// async rewrites() {
// return [
// {
// source: '/api/:path*',
// destination: 'http://localhost:5001/api/:path*'
// },
// {
// source: '/foods/:path*',
// destination: 'http://localhost:5001/foods/:path*'
// },
// {
// source: '/recipes/:path*',
// destination: 'http://localhost:5001/recipes/:path*'
// },
// {
// source: '/users/:path*',
// destination: 'http://localhost:5001/users/:path*'
// },
// {
// source: '/menus/:path*',
// destination: 'http://localhost:5001/menus/:path*'
// }
// ]
// }
}

module.exports = nextConfig

0 comments on commit 7226a85

Please sign in to comment.