Skip to content

Commit

Permalink
Revert "Ikke bruk CDN"
Browse files Browse the repository at this point in the history
This reverts commit 97ff22a.

Revert "Riktig csp"

This reverts commit 34d6a44.

Revert "Dont use CDN in production"

This reverts commit abd37b6.
  • Loading branch information
gtcno committed Oct 9, 2024
1 parent abd37b6 commit 19ddaa8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .nais/nais.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ spec:
accessPolicy:
outbound:
external:
- host: rt6o382n.api.sanity.io
- host: rt6o382n.apicdn.sanity.io
- host: graph.microsoft.com
- host: login.microsoftonline.com
- host: saf.dev-fss-pub.nais.io
Expand Down
2 changes: 1 addition & 1 deletion app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const csp = {
"connect-src": [
"'self'",
"*.nav.no",
"rt6o382n.api.sanity.io",
"rt6o382n.apicdn.sanity.io",
"https://telemetry.ekstern.dev.nav.no/collect",
"https://telemetry.nav.no/collect",
"cataas.com/cat/gif",
Expand Down
2 changes: 1 addition & 1 deletion app/sanity/sanity-client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { createClient } from "@sanity/client";
export const sanityConfig = {
dataset: process.env.SANITY_DATASET || "development",
projectId: process.env.SANITY_PROJECT_ID || "rt6o382n",
useCdn: false,
useCdn: process.env.NODE_ENV === "production",
token: process.env.SANITY_ACCESS_TOKEN || "",
apiVersion: "2022-03-07",
};
Expand Down

0 comments on commit 19ddaa8

Please sign in to comment.