Skip to content

Commit

Permalink
chore: add dynamic handler on sw router
Browse files Browse the repository at this point in the history
  • Loading branch information
userquin committed Feb 19, 2022
1 parent e10465a commit 6b6368d
Show file tree
Hide file tree
Showing 12 changed files with 719 additions and 433 deletions.
10 changes: 10 additions & 0 deletions netlify.toml
Expand Up @@ -7,6 +7,16 @@
publish = "dist"
command = "npx pnpm i --store=node_modules/.pnpm-store && npx pnpm run build"

[[redirects]]
from = "/about"
to = "/about.html"
status = 200

[[redirects]]
from = "/hi/*"
to = "/hi/_name.html"
status = 200

[[redirects]]
from = "/*"
to = "/index.html"
Expand Down
12 changes: 7 additions & 5 deletions package.json
Expand Up @@ -5,7 +5,7 @@
"dev": "vite --port 3333 --open",
"lint": "eslint \"**/*.{vue,ts,js}\"",
"preview": "vite preview",
"preview-https": "serve dist",
"preview-https": "esno server.ts",
"test": "vitest",
"test:e2e": "cypress open",
"test:unit": "vitest",
Expand All @@ -26,33 +26,35 @@
"@antfu/eslint-config": "^0.16.1",
"@iconify-json/carbon": "^1.1.1",
"@intlify/vite-plugin-vue-i18n": "^3.3.0",
"@types/express": "^4.17.13",
"@types/markdown-it-link-attributes": "^3.0.1",
"@types/nprogress": "^0.2.0",
"@unocss/preset-attributify": "^0.24.4",
"@unocss/preset-icons": "^0.24.4",
"@unocss/preset-typography": "^0.24.4",
"@unocss/preset-web-fonts": "^0.24.4",
"@unocss/reset": "^0.24.4",
"@vitejs/plugin-vue": "^2.2.0",
"@vitejs/plugin-vue": "^2.2.2",
"@vue/test-utils": "^2.0.0-rc.18",
"critters": "^0.0.16",
"cross-env": "^7.0.3",
"cypress": "^9.5.0",
"eslint": "^8.9.0",
"eslint-plugin-cypress": "^2.12.1",
"esno": "^0.14.1",
"https-localhost": "^4.7.1",
"markdown-it-link-attributes": "^4.0.0",
"markdown-it-prism": "^2.2.2",
"markdown-it-prism": "^2.2.3",
"pnpm": "^6.31.0",
"typescript": "^4.5.5",
"unocss": "^0.24.4",
"unplugin-auto-import": "^0.6.0",
"unplugin-vue-components": "^0.17.18",
"vite": "^2.8.3",
"vite": "^2.8.4",
"vite-plugin-inspect": "^0.3.14",
"vite-plugin-md": "^0.11.8",
"vite-plugin-pages": "^0.20.2",
"vite-plugin-pwa": "^0.11.13",
"vite-plugin-pwa": "file:vite-plugin-pwa-0.11.13.tgz",
"vite-plugin-vue-layouts": "^0.6.0",
"vite-ssg": "^0.17.10",
"vitest": "^0.3.6",
Expand Down

0 comments on commit 6b6368d

Please sign in to comment.