@dargmuesli/nuxt-vio 16.0.1 → 16.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -3
- package/utils/constants.ts +4 -0
package/package.json
CHANGED
@@ -101,7 +101,8 @@
|
|
101
101
|
"build": "pnpm run build:node",
|
102
102
|
"build:node": "nuxt build .playground",
|
103
103
|
"build:static": "nuxt generate .playground",
|
104
|
-
"build:static:test": "SITE_URL=https://localhost:3002 pnpm run build:static",
|
104
|
+
"build:static:test": "cross-env NUXT_PUBLIC_VIO_IS_TESTING=true SITE_URL=https://localhost:3002 pnpm run build:static",
|
105
|
+
"build:test": "pnpm run build:static:test",
|
105
106
|
"dev": "pnpm run start:dev",
|
106
107
|
"generate": "pnpm run build:static",
|
107
108
|
"lint:fix": "pnpm run lint:js --fix && pnpm run lint:ts --fix && pnpm run lint:style --fix",
|
@@ -114,8 +115,11 @@
|
|
114
115
|
"preview": "nuxt preview .playground",
|
115
116
|
"start:dev": "nuxt dev .playground",
|
116
117
|
"start:node": "node .playground/.output/server/index.mjs",
|
117
|
-
"start:
|
118
|
+
"start:node:test": "PORT=3001 pnpm run start:node",
|
119
|
+
"start:static": "serve .playground/.output/public --ssl-cert ./.config/certificates/ssl.crt --ssl-key ./.config/certificates/ssl.key",
|
120
|
+
"start:static:test": "PORT=3002 pnpm run start:static",
|
121
|
+
"start:test": "pnpm run start:static:test"
|
118
122
|
},
|
119
123
|
"type": "module",
|
120
|
-
"version": "16.0.1"
|
124
|
+
"version": "16.1.0-beta.1"
|
121
125
|
}
|
package/utils/constants.ts
CHANGED
@@ -41,6 +41,10 @@ export const GET_CSP = (siteUrl: string) =>
|
|
41
41
|
],
|
42
42
|
'script-src-elem': ['https://*.googletagmanager.com'],
|
43
43
|
},
|
44
|
+
{
|
45
|
+
// Google Service Worker (https://developers.google.com/tag-platform/tag-manager/web/csp)
|
46
|
+
'frame-src': ['https://www.googletagmanager.com'],
|
47
|
+
},
|
44
48
|
{
|
45
49
|
// vio
|
46
50
|
'manifest-src': [`${siteUrl}/site.webmanifest`],
|