File tree Expand file tree Collapse file tree 6 files changed +7
-7
lines changed
Expand file tree Collapse file tree 6 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,13 @@ module.exports = {
33 return [
44 {
55 destination : '/' ,
6- permanent : false ,
76 source : '/trends' ,
7+ statusCode : 301 ,
88 } ,
99 {
1010 destination : '/' ,
11- permanent : false ,
1211 source : '/taskviews' ,
12+ statusCode : 301 ,
1313 } ,
1414 ] ;
1515 } ,
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const getServerSideProps: GetServerSideProps = async ({
2323 return {
2424 redirect : {
2525 destination : `/packages/${ packageName } /versions/${ latestVersion } /topics/${ topicName } ` ,
26- permanent : true ,
26+ statusCode : 301 ,
2727 } ,
2828 } ;
2929 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ export const getServerSideProps: GetServerSideProps = async ({
2929 return {
3030 redirect : {
3131 destination : res . url . replace ( API_URL , '' ) ,
32- permanent : true ,
32+ statusCode : 301 ,
3333 } ,
3434 } ;
3535 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ export const getServerSideProps: GetServerSideProps = async ({
2323 return {
2424 redirect : {
2525 destination : `/packages/${ packageName } /versions/${ latestVersion } ` ,
26- permanent : true ,
26+ statusCode : 301 ,
2727 } ,
2828 } ;
2929 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const getServerSideProps: GetServerSideProps = async ({
2222 return {
2323 redirect : {
2424 destination : `/packages/${ packageName } /versions/${ latestVersion } /topics/${ functionName } ` ,
25- permanent : true ,
25+ statusCode : 301 ,
2626 } ,
2727 } ;
2828 } catch ( error ) {
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ export const getServerSideProps: GetServerSideProps = async ({
2222 return {
2323 redirect : {
2424 destination : `/packages/${ packageName } /versions/${ latestVersion } /topics/${ topicName } ` ,
25- permanent : true ,
25+ statusCode : 301 ,
2626 } ,
2727 } ;
2828 } catch ( error ) {
You can’t perform that action at this time.
0 commit comments