Browse Source

chore: enable cors for sfc as temporary fix

pull/8045/head
Evan You 2 years ago
parent
commit
6e540d6ac7
  1. 2
      packages/sfc-playground/package.json
  2. 9
      packages/sfc-playground/vercel.json

2
packages/sfc-playground/package.json

@ -12,7 +12,7 @@
"vite": "^4.2.0"
},
"dependencies": {
"@vue/repl": "^1.3.0",
"@vue/repl": "^1.3.4",
"file-saver": "^2.0.5",
"jszip": "^3.6.0",
"vue": "workspace:*"

9
packages/sfc-playground/vercel.json

@ -1,8 +1,13 @@
{
"headers": [
{
"source": "/(.*).js",
"headers": [{ "key": "Access-Control-Allow-Origin", "value": "*" }]
"source": "/assets/(.*)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000, immutable"
}
]
}
]
}
Loading…
Cancel
Save