-
Notifications
You must be signed in to change notification settings - Fork 27.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'canary' into not-found-default
- Loading branch information
Showing
257 changed files
with
30,262 additions
and
765 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -268,6 +268,13 @@ jobs: | |
run: ${{ matrix.settings.setup }} | ||
if: ${{ matrix.settings.setup }} | ||
|
||
- name: Cache on ${{ github.ref_name }} | ||
uses: ijjk/[email protected] | ||
with: | ||
shared-key: build-${{ matrix.settings.target }} | ||
save-if: 'true' | ||
cache-provider: 'turbo' | ||
|
||
# we only need custom caching for docker builds | ||
# as they are on an older Node.js version and have | ||
# issues with turbo caching | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -49,6 +49,10 @@ on: | |
required: false | ||
description: 'if test trace needs uploading' | ||
type: string | ||
rustCacheKey: | ||
required: false | ||
description: 'rustCacheKey to cache shared target assets' | ||
type: string | ||
|
||
env: | ||
NAPI_CLI_VERSION: 2.14.7 | ||
|
@@ -114,6 +118,14 @@ jobs: | |
|
||
- run: corepack prepare --activate [email protected] && npm i -g "turbo@${TURBO_VERSION}" "@napi-rs/cli@${NAPI_CLI_VERSION}" | ||
|
||
- name: Cache on ${{ github.ref_name }} | ||
uses: ijjk/[email protected] | ||
if: ${{ inputs.rustCacheKey }} | ||
with: | ||
shared-key: ${{ inputs.rustCacheKey }}-x86_64-unknown-linux-gnu | ||
save-if: ${{ github.ref_name == 'canary' }} | ||
cache-provider: 'turbo' | ||
|
||
# clean up any previous artifacts to avoid hitting disk space limits | ||
- run: git clean -xdf && rm -rf /tmp/next-repo-*; rm -rf /tmp/next-install-* /tmp/yarn-* /tmp/ncc-cache target | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# Read the Vercel + Sitecore docs for the full setup instructions: https://vercel.com/docs/integrations/sitecore | ||
|
||
# For development purposes, note Next.js supports a .env.local | ||
# file, which is already configured to be git ignored. | ||
# Read more about Next.js support of environment variables here: | ||
# https://nextjs.org/docs/basic-features/environment-variables | ||
JSS_APP_NAME= | ||
|
||
# The public URL to use for absolute URLs, which are required when | ||
# the Next.js app is run within Sitecore editors. | ||
# This should match the `serverSideRenderingEngineApplicationUrl` | ||
# in your Sitecore configuration (see \sitecore\config\xmcloud-nextjs-starter.config). | ||
# Be sure to update these values accordingly as your public endpoint changes. | ||
# See https://jss.sitecore.com/docs/fundamentals/services/view-engine | ||
PUBLIC_URL=http://localhost:3000 | ||
|
||
# To secure the Sitecore editor endpoint exposed by your Next.js app | ||
# (`/api/editing/render` by default), a secret token is used. This (client-side) | ||
# value must match your server-side value (see \sitecore\config\xmcloud-nextjs-starter.config). | ||
# We recommend an alphanumeric value of at least 16 characters. | ||
JSS_EDITING_SECRET= | ||
|
||
# Your Sitecore API key is needed to build the app. Typically, the API key is | ||
# defined in `scjssconfig.json` (as `sitecore.apiKey`). This file may not exist | ||
# when building locally (if you've never run `jss setup`), or when building in a | ||
# higher environment (since `scjssconfig.json` is ignored from source control). | ||
# In this case, use this environment variable to provide the value at build time. | ||
SITECORE_API_KEY= | ||
|
||
# Your Sitecore API hostname is needed to build the app. Typically, the API host is | ||
# defined in `scjssconfig.json` (as `sitecore.layoutServiceHost`). This file may | ||
# not exist when building locally (if you've never run `jss setup`), or when building | ||
# in a higher environment (since `scjssconfig.json` is ignored from source control). | ||
# In this case, use this environment variable to provide the value at build time. | ||
SITECORE_API_HOST= | ||
|
||
# Your GraphQL Edge endpoint. This is required for Sitecore Experience Edge. | ||
# For Sitecore XM, this is typically optional. By default, the endpoint is calculated using | ||
# the resolved Sitecore API hostname + the `graphQLEndpointPath` defined in your `package.json`. | ||
GRAPH_QL_ENDPOINT= | ||
|
||
# Your default app language. | ||
DEFAULT_LANGUAGE= | ||
|
||
# The way in which layout and dictionary data is fetched from Sitecore | ||
FETCH_WITH=GraphQL | ||
|
||
# Indicates whether SSG `getStaticPaths` pre-render any pages | ||
# Set the environment variable DISABLE_SSG_FETCH=true | ||
# to enable full ISR (Incremental Static Regeneration) flow | ||
DISABLE_SSG_FETCH= | ||
|
||
# Sitecore JSS npm packages utilize the debug module for debug logging. | ||
# https://www.npmjs.com/package/debug | ||
# Set the DEBUG environment variable to 'sitecore-jss:*' to see all logs: | ||
#DEBUG=sitecore-jss:* | ||
# Or be selective and show for example only layout service logs: | ||
#DEBUG=sitecore-jss:layout | ||
# Or everything BUT layout service logs: | ||
#DEBUG=sitecore-jss:*,-sitecore-jss:layout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next*/ | ||
/out/ | ||
|
||
# graphql code generation | ||
/.generated | ||
*.graphql.d.ts | ||
*.graphqls.d.ts | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# local env files | ||
.env.local | ||
.env.*.local | ||
|
||
# Log files | ||
*.log* | ||
|
||
# sitecore | ||
scjssconfig.json | ||
*.deploysecret.config | ||
|
||
# vercel | ||
.vercel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
schema: | ||
- './src/temp/GraphQLIntrospectionResult.json' | ||
documents: 'src/**/*.graphql' | ||
plugins: | ||
- typescript-operations | ||
- typed-document-node | ||
config: | ||
useIndexSignature: true |
Oops, something went wrong.