File tree 3 files changed +9
-2
lines changed
3 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,15 @@ let nextConfig = {
41
41
"default-src 'self'; script-src 'none'; sandbox; style-src 'unsafe-inline';" ,
42
42
} ,
43
43
44
+ async rewrites ( ) {
45
+ return {
46
+ beforeFiles : [
47
+ { source : '/atom.xml' , destination : '/feed' } ,
48
+ { source : '/sitemap.xml' , destination : '/sitemap' } ,
49
+ ] ,
50
+ }
51
+ } ,
52
+
44
53
webpack : ( config , options ) => {
45
54
config . externals . push ( {
46
55
'utf-8-validate' : 'commonjs utf-8-validate' ,
Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ import { escapeXml } from '~/lib/helper.server'
10
10
import { getQueryClient } from '~/lib/query-client.server'
11
11
import { apiClient } from '~/lib/request'
12
12
13
- export const runtime = 'edge'
14
13
export const revalidate = 60 * 60 // 1 hour
15
14
16
15
export async function GET ( ) {
Original file line number Diff line number Diff line change 1
1
import { getQueryClient } from '~/lib/query-client.server'
2
2
import { apiClient } from '~/lib/request'
3
3
4
- export const runtime = 'edge'
5
4
export const revalidate = 60 * 60 // 1 hour
6
5
7
6
export const GET = async ( ) => {
You can’t perform that action at this time.
0 commit comments