You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
include as many static assets as possible in exclude list (#8422)
* include as many static assets as possible in exclude list - closes#7640
* temporarily add trailing slash
* Revert "temporarily add trailing slash"
This reverts commit f3ff35f.
* add a warning
* fix typo
* fix string
* Update .changeset/giant-penguins-act.md
Co-authored-by: Ben McCann <[email protected]>
* fix
Co-authored-by: Simon H <[email protected]>
Co-authored-by: Ben McCann <[email protected]>
constmessage=`Static file count exceeds _routes.json limits (see https://developers.cloudflare.com/pages/platform/functions/routing/#limits). Accessing some ${excess} will cause function invocations.`;
100
+
builder.log.warn(message);
101
+
exclude.length=99;
102
+
}
103
+
70
104
return{
71
105
version: 1,
72
106
description: 'Generated by @sveltejs/adapter-cloudflare',
73
107
include: ['/*'],
74
-
exclude: [
75
-
`/${app_dir}/immutable/*`,
76
-
...assets
77
-
// We're being conservative by not excluding all assets in
78
-
// /static just yet. If there are any upstream auth rules to
79
-
// protect certain things (e.g. a PDF that requires auth),
80
-
// then we wouldn't want to prevent those requests from going
81
-
// to the user functions worker.
82
-
// We do want to show an example of a _routes.json that
83
-
// excludes more than just /_app/immutable/*, and favicons
0 commit comments