mirror of
https://github.com/AustinKelsay/plebdevs.git
synced 2025-06-06 18:31:00 +00:00
Slug instead of path in config
This commit is contained in:
parent
cd52755c00
commit
e761c0546b
@ -27,7 +27,7 @@ module.exports = removeImports({
|
|||||||
async headers() {
|
async headers() {
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
source: "/api/:path*",
|
source: "/api/:slug*",
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
key: "Access-Control-Allow-Origin",
|
key: "Access-Control-Allow-Origin",
|
||||||
@ -62,12 +62,16 @@ module.exports = removeImports({
|
|||||||
value: "max-age=31536000; includeSubDomains; preload"
|
value: "max-age=31536000; includeSubDomains; preload"
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
source: "/api/.well-known/:path*",
|
source: "/api/.well-known/:slug*",
|
||||||
headers: [
|
headers: [
|
||||||
{
|
{
|
||||||
key: "Access-Control-Allow-Origin",
|
key: "Access-Control-Allow-Origin",
|
||||||
value: "*"
|
value: "*"
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
key: "Access-Control-Allow-Methods",
|
||||||
|
value: "GET, POST, PUT, DELETE, OPTIONS",
|
||||||
|
},
|
||||||
{
|
{
|
||||||
key: 'Cache-Control',
|
key: 'Cache-Control',
|
||||||
value: 'no-cache, max-age=0, must-revalidate'
|
value: 'no-cache, max-age=0, must-revalidate'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user