-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
chore: build hashes of scripts (#13590) #13805
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
5850fe9
ee3fd24
53f327a
3d8c8b3
6eba6ab
ab20b18
b37eb7b
ad5fa1e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,12 @@ import { fileURLToPath } from 'node:url'; | |
| import type * as vite from 'vite'; | ||
| import { normalizePath } from 'vite'; | ||
| import type { SSRManifestCSP, SSRManifest, SSRManifestI18n } from '../core/app/types.js'; | ||
| import { getAlgorithm, shouldTrackCspHashes } from '../core/csp/common.js'; | ||
| import { | ||
| getAlgorithm, | ||
| getScriptHashes, | ||
| getStyleHashes, | ||
| shouldTrackCspHashes, | ||
| } from '../core/csp/common.js'; | ||
| import { warnMissingAdapter } from '../core/dev/adapter-validation.js'; | ||
| import { createKey, getEnvironmentKey, hasEnvironmentKey } from '../core/encryption.js'; | ||
| import { getViteErrorPayload } from '../core/errors/dev/index.js'; | ||
|
|
@@ -177,8 +182,8 @@ export function createDevelopmentManifest(settings: AstroSettings): SSRManifest | |
|
|
||
| if (shouldTrackCspHashes(settings.config)) { | ||
| csp = { | ||
| clientScriptHashes: [], | ||
| clientStyleHashes: [], | ||
| clientScriptHashes: getScriptHashes(settings.config), | ||
|
||
| clientStyleHashes: getStyleHashes(settings.config), | ||
| algorithm: getAlgorithm(settings.config), | ||
| }; | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.