diff options
Diffstat (limited to 'next.config.js')
| -rw-r--r-- | next.config.js | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/next.config.js b/next.config.js new file mode 100644 index 0000000..5b04182 --- /dev/null +++ b/next.config.js @@ -0,0 +1,33 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + eslint: { + ignoreDuringBuilds: true + }, + async rewrites() { + return [ + { + source: '/:_owner/:_name/image', + destination: '/api/image' + }, + { + source: '/:_owner/:_name/svg', + destination: '/api/svg' + }, + { + source: '/:_owner/:_name/png', + destination: '/api/png' + }, + // Kept for legacy support + { + source: '/:_owner/:_name/jpg', + destination: '/api/png' + }, + { + source: '/graphql', + destination: '/api/graphql' + } + ] + } +} + +module.exports = nextConfig |
