aboutsummaryrefslogtreecommitdiff
path: root/next.config.js
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-11-30 23:16:07 -0500
committerBobby <[email protected]>2022-11-30 23:16:07 -0500
commitdaaa789068cebb5fdfcea6197ade6e663be46e0f (patch)
tree1cd315851b779ac28fe622da332c3c16fe1c433c /next.config.js
downloadtcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.tar.xz
tcssocialify-daaa789068cebb5fdfcea6197ade6e663be46e0f.zip
socialify update
Diffstat (limited to 'next.config.js')
-rw-r--r--next.config.js33
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