@genoacms/adapter-gcp 0.11.0 → 0.12.0

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.
@@ -9,6 +9,7 @@ import { SETTING_KEYS, validateSettings } from './settings.js';
9
9
  export default defineDeploymentTarget({
10
10
  svelteKitAdapter: async () => await import('@genoacms/sveltekit-adapter-cloud-run-functions'),
11
11
  svelteKitOptions: (_options, { outDir }) => ({ out: outDir }),
12
+ origin: options => options.origin,
12
13
  procedure: async () => await import('./procedure.js'),
13
14
  secretOptions: { credentials: 'json' },
14
15
  validate: options => [
@@ -8,7 +8,7 @@ export interface FunctionSettings {
8
8
  maxInstances?: number;
9
9
  ingress?: Ingress;
10
10
  serviceAccount?: string;
11
- /** Set as ORIGIN: the origin browsers use, when a proxy rewrites the forwarded host (architecture GD5). */
11
+ /** Given to the build as SvelteKit's paths.origin: the origin browsers use, when a proxy rewrites the forwarded host (architecture GD5). */
12
12
  origin?: string;
13
13
  /** Set as XFF_DEPTH: which X-Forwarded-For entry, from the right, is the client (architecture GD5). */
14
14
  xffDepth?: number;
@@ -39,7 +39,6 @@ function environmentVariables(settings) {
39
39
  return {
40
40
  NODE_ENV: 'production',
41
41
  IGNORED_ROUTES: '',
42
- ...(settings.origin === undefined ? {} : { ORIGIN: settings.origin }),
43
42
  ...(settings.xffDepth === undefined ? {} : { XFF_DEPTH: String(settings.xffDepth) })
44
43
  };
45
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@genoacms/adapter-gcp",
3
- "version": "0.11.0",
3
+ "version": "0.12.0",
4
4
  "type": "module",
5
5
  "description": "Implementation of abstraction layer of GenoaCMS for GCP",
6
6
  "repository": {
@@ -27,8 +27,8 @@
27
27
  "@google-cloud/storage": "^7.7.0",
28
28
  "archiver": "^7.0.0",
29
29
  "google-auth-library": "^9.15.1",
30
- "@genoacms/contracts": "^0.1.0",
31
- "@genoacms/sveltekit-adapter-cloud-run-functions": "^1.0.1"
30
+ "@genoacms/contracts": "^0.2.0",
31
+ "@genoacms/sveltekit-adapter-cloud-run-functions": "^2.0.0"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/archiver": "^6.0.2",
@@ -40,8 +40,8 @@
40
40
  "eslint-plugin-promise": "^6.1.1",
41
41
  "rimraf": "^5.0.5",
42
42
  "typescript": "^5.2.2",
43
- "vitest": "^3.2.7",
44
- "@genoacms/conformance": "^0.1.0"
43
+ "vitest": "^4.1.12",
44
+ "@genoacms/conformance": "^0.1.1"
45
45
  },
46
46
  "files": [
47
47
  "dist"