@sveltejs/adapter-cloudflare-workers
Advanced tools
Comparing version 1.0.0-next.58 to 1.0.0-next.59
@@ -9,3 +9,3 @@ import { Server } from 'SERVER'; | ||
const prefix = `/${manifest.appDir}/`; | ||
const app_path = `/${manifest.appPath}/`; | ||
@@ -24,3 +24,3 @@ export default { | ||
// static assets | ||
if (url.pathname.startsWith(prefix)) { | ||
if (url.pathname.startsWith(app_path)) { | ||
/** @type {Response} */ | ||
@@ -30,3 +30,3 @@ const res = await get_asset_from_kv(req, env, context); | ||
const cache_control = url.pathname.startsWith(prefix + 'immutable/') | ||
const cache_control = url.pathname.startsWith(app_path + 'immutable/') | ||
? 'public, immutable, max-age=31536000' | ||
@@ -33,0 +33,0 @@ : 'no-cache'; |
@@ -76,4 +76,5 @@ import { existsSync, readFileSync, writeFileSync } from 'fs'; | ||
builder.log.minor('Copying assets...'); | ||
builder.writeClient(site.bucket); | ||
builder.writePrerendered(site.bucket); | ||
const bucket_dir = `${site.bucket}${builder.config.kit.paths.base}`; | ||
builder.writeClient(bucket_dir); | ||
builder.writePrerendered(bucket_dir); | ||
} | ||
@@ -80,0 +81,0 @@ }; |
{ | ||
"name": "@sveltejs/adapter-cloudflare-workers", | ||
"version": "1.0.0-next.58", | ||
"version": "1.0.0-next.59", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
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
12684
217