diff options
author | Loek Le Blansch <32883851+lonkaars@users.noreply.github.com> | 2021-01-31 14:33:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 14:33:50 +0100 |
commit | 75255cd0085e4d7457a7af45e6192c6cfaf5e6e5 (patch) | |
tree | f3dd2503199729941355b662f3799b67e06f2485 /next.config.js | |
parent | cd876e0e3000855cf407eee86b9a4d46e8875d91 (diff) | |
parent | 8de79c8869b254992e5c6df391c5ebd1e1da2f1a (diff) |
Merge pull request #2 from lonkaars/nextjs
move from react routing thingy to next.js
Diffstat (limited to 'next.config.js')
-rw-r--r-- | next.config.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..e70331f --- /dev/null +++ b/next.config.js @@ -0,0 +1,10 @@ +module.exports = { + async rewrites() { + return [ + { + source: '/api/:path*', + destination: 'http://localhost:5000/:path*' + }, + ] + }, +} |