fix: install design repo with access token
This commit is contained in:
@@ -5,3 +5,4 @@ CMS_URL="https://eu-graphql.contentstack.com/stacks/${CMS_API_KEY}?environment=$
|
||||
CMS_PREVIEW_URL="https://graphql-preview.contentstack.com/stacks/${CMS_API_KEY}?environment=${CMS_ENVIRONMENT}";
|
||||
CMS_PREVIEW_TOKEN=""
|
||||
ADOBE_SCRIPT_SRC=""
|
||||
REPOSITORY_ACCESS_TOKEN=""
|
||||
|
||||
@@ -45,7 +45,7 @@ export default function Puff({
|
||||
renderOptions={renderOptions}
|
||||
/>
|
||||
<div>
|
||||
<Button onPress={onClick}>{link.title}</Button>
|
||||
<Button onPress={onClick}>{link.title || title}</Button>
|
||||
</div>
|
||||
</section>
|
||||
</article>
|
||||
|
||||
2
env/server.ts
vendored
2
env/server.ts
vendored
@@ -15,6 +15,7 @@ export const env = createEnv({
|
||||
NODE_ENV: z.enum(["development", "test", "production"]),
|
||||
PRINT_QUERY: z.boolean().default(false),
|
||||
REVALIDATE_SECRET: z.string(),
|
||||
REPOSITORY_ACCESS_TOKEN: z.string(),
|
||||
},
|
||||
emptyStringAsUndefined: true,
|
||||
runtimeEnv: {
|
||||
@@ -30,5 +31,6 @@ export const env = createEnv({
|
||||
NODE_ENV: process.env.NODE_ENV,
|
||||
PRINT_QUERY: process.env.PRINT_QUERY,
|
||||
REVALIDATE_SECRET: process.env.REVALIDATE_SECRET,
|
||||
REPOSITORY_ACCESS_TOKEN: process.env.REPOSITORY_ACCESS_TOKEN,
|
||||
},
|
||||
})
|
||||
|
||||
5
package-lock.json
generated
5
package-lock.json
generated
@@ -7,10 +7,11 @@
|
||||
"": {
|
||||
"name": "web",
|
||||
"version": "0.1.0",
|
||||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"@contentstack/live-preview-utils": "^1.4.0",
|
||||
"@netlify/plugin-nextjs": "^5.0.0-beta.9",
|
||||
"@scandic-hotels/design-system": "git+ssh://git@scandichotels.bitbucket.org:scandic-swap/design-system.git#v0.1.0-rc.1",
|
||||
"@scandic-hotels/design-system": "git+https://x-token-auth:$REPOSITORY_ACCESS_TOKEN@bitbucket.org/scandic-swap/design-system.git#v0.1.0-rc.1",
|
||||
"@t3-oss/env-nextjs": "^0.9.2",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"graphql": "^16.8.1",
|
||||
@@ -589,7 +590,7 @@
|
||||
},
|
||||
"node_modules/@scandic-hotels/design-system": {
|
||||
"version": "0.1.0",
|
||||
"resolved": "git+ssh://git@scandichotels.bitbucket.org:scandic-swap/design-system.git#fa01fbbf819145fd69e9685232a6a254c0ff7f07",
|
||||
"resolved": "git+https://x-token-auth:ATCTT3xFfGN0gu4BSBWR71ifMM-_iAT2ip_jnjF0OjTkYhEB3sn71fPCGuMUA7O3BxJ2oHptZVGAlVvMUoeo3Wfute7RYido9HlvrVjemqns9hR3WSf6eNHhsSy5bLtxQ6VK7mnSSAGHaCqTejxirs_PmOB_jPIi1Ft4OEDehtnMxCteg8rO-IE%3D27DF8E0B@bitbucket.org/scandic-swap/design-system.git#fa01fbbf819145fd69e9685232a6a254c0ff7f07",
|
||||
"peerDependencies": {
|
||||
"react": "^18.2.0",
|
||||
"react-aria-components": "^1.0.1",
|
||||
|
||||
@@ -13,13 +13,14 @@
|
||||
"test:component:headless": "cypress run --component",
|
||||
"test:e2e": "start-server-and-test test:setup http://127.0.0.1:3000/en/test \"cypress open --e2e\"",
|
||||
"test:e2e:headless": "start-server-and-test test:setup http://127.0.0.1:3000/en/test \"cypress run --e2e\"",
|
||||
"test:setup": "npm run build && npm run start"
|
||||
"test:setup": "npm run build && npm run start",
|
||||
"preinstall": "export $(cat .env.local | grep -v '^#' | xargs)"
|
||||
},
|
||||
"dependencies": {
|
||||
"@contentstack/live-preview-utils": "^1.4.0",
|
||||
"@netlify/plugin-nextjs": "^5.0.0-beta.9",
|
||||
"@scandic-hotels/design-system": "git+https://x-token-auth:$REPOSITORY_ACCESS_TOKEN@bitbucket.org/scandic-swap/design-system.git#v0.1.0-rc.1",
|
||||
"@t3-oss/env-nextjs": "^0.9.2",
|
||||
"@scandic-hotels/design-system": "git+ssh://git@scandichotels.bitbucket.org:scandic-swap/design-system.git#v0.1.0-rc.1",
|
||||
"class-variance-authority": "^0.7.0",
|
||||
"graphql": "^16.8.1",
|
||||
"graphql-request": "^6.1.0",
|
||||
|
||||
@@ -11,7 +11,7 @@ export type Puff = {
|
||||
imageConnection: Edges<Image>
|
||||
link: {
|
||||
href: string
|
||||
title: string
|
||||
title?: string
|
||||
}
|
||||
puff_style: PuffStyleEnum
|
||||
text: {
|
||||
|
||||
Reference in New Issue
Block a user