@sveltejs/adapter-static
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -11,3 +11,4 @@ import path from 'node:path'; | ||
if (!options?.fallback) { | ||
if (builder.routes.some((route) => route.prerender !== true) && options?.strict !== false) { | ||
const dynamic_routes = builder.routes.filter((route) => route.prerender !== true); | ||
if (dynamic_routes.length > 0 && options?.strict !== false) { | ||
const prefix = path.relative('.', builder.config.kit.files.routes); | ||
@@ -26,3 +27,3 @@ const has_param_routes = builder.routes.some((route) => route.id.includes('[')); | ||
`@sveltejs/adapter-static: all routes must be fully prerenderable, but found the following routes that are dynamic: | ||
${builder.routes.map((route) => ` - ${path.posix.join(prefix, route.id)}`).join('\n')} | ||
${dynamic_routes.map((route) => ` - ${path.posix.join(prefix, route.id)}`).join('\n')} | ||
@@ -29,0 +30,0 @@ You have the following options: |
{ | ||
"name": "@sveltejs/adapter-static", | ||
"version": "2.0.2", | ||
"version": "2.0.3", | ||
"description": "Adapter for SvelteKit apps that prerenders your entire site as a collection of static files", | ||
@@ -27,9 +27,9 @@ "repository": { | ||
"devDependencies": { | ||
"@playwright/test": "1.30.0", | ||
"@types/node": "^16.18.6", | ||
"sirv": "^2.0.2", | ||
"svelte": "^3.56.0", | ||
"sirv": "^2.0.3", | ||
"svelte": "^4.0.5", | ||
"typescript": "^4.9.4", | ||
"uvu": "^0.5.6", | ||
"vite": "^4.2.0", | ||
"@sveltejs/kit": "^1.15.3" | ||
"vite": "^4.4.2", | ||
"@sveltejs/kit": "^1.22.3" | ||
}, | ||
@@ -43,4 +43,4 @@ "peerDependencies": { | ||
"format": "pnpm lint --write", | ||
"test": "uvu test test.js" | ||
"test": "pnpm -r --workspace-concurrency 1 --filter=\"./test/**\" test" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8323
151