upstream #1
| @@ -38,4 +38,17 @@ module.exports = withBundleAnalyzer({ | ||||
|  | ||||
|     return config | ||||
|   }, | ||||
|   async rewrites() { | ||||
|     return { | ||||
|       beforeFiles: [ | ||||
|         // Rewrite to prevent a problem when deploying at vercel | ||||
|         // which directs a user to the index.xml instead of index.html | ||||
|         // https://github.com/timlrx/tailwind-nextjs-starter-blog/issues/16 | ||||
|         { | ||||
|           source: '/', | ||||
|           destination: '/index', | ||||
|         }, | ||||
|       ], | ||||
|     } | ||||
|   }, | ||||
| }) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user