Skip to content

Commit

Permalink
fix: only set long expiration for files in _app/immutable directory
Browse files Browse the repository at this point in the history
  • Loading branch information
sfriedel committed Jul 5, 2022
1 parent 705a74c commit 89bc1c6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,16 @@ export default function entrypoint() {
...yaml.handlers ?? [],
...prerenderedPages,
...prerenderedRedirects,
{
url: `/${builder.config.kit.appDir}/immutable/`,
// eslint-disable-next-line camelcase
static_dir: `storage/${builder.config.kit.appDir}/immutable`,
expiration: '30d 0h',
},
{
url: `/${builder.config.kit.appDir}/`,
// eslint-disable-next-line camelcase
static_dir: `storage/${builder.config.kit.appDir}`,
expiration: '30d 0h',
},
{
url: '/.*',
Expand Down

0 comments on commit 89bc1c6

Please sign in to comment.