mirror of
https://github.com/LukeHagar/vercel.git
synced 2025-12-12 12:57:47 +00:00
Compare commits
24 Commits
create-inp
...
esbuild-py
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9019810288 | ||
|
|
5e4a8aff34 | ||
|
|
55d574cd26 | ||
|
|
18cdcf35d3 | ||
|
|
d2ce05ba27 | ||
|
|
3f5f368b19 | ||
|
|
48520ff329 | ||
|
|
10c3251b95 | ||
|
|
bdd8958895 | ||
|
|
2d4d87e7dc | ||
|
|
a94450d78e | ||
|
|
52e0c01cf5 | ||
|
|
65ecb16b04 | ||
|
|
6ce38c4cc8 | ||
|
|
a27cfd661b | ||
|
|
6523ab43b2 | ||
|
|
102a83f1b5 | ||
|
|
93c5a2b182 | ||
|
|
323a8d7122 | ||
|
|
4ab1720df2 | ||
|
|
6495dd150e | ||
|
|
1d69870141 | ||
|
|
2eee17de24 | ||
|
|
e62b3da5a7 |
5
.changeset/brown-wasps-exercise.md
Normal file
5
.changeset/brown-wasps-exercise.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vercel/build-utils": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
add descriptions to NodeVersion properties
|
||||||
5
.changeset/eighty-rockets-help.md
Normal file
5
.changeset/eighty-rockets-help.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Migrates the vc env command to the command data structure for use in the help output.
|
||||||
5
.changeset/five-bananas-joke.md
Normal file
5
.changeset/five-bananas-joke.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update domains command to new structure
|
||||||
5
.changeset/happy-rivers-rule.md
Normal file
5
.changeset/happy-rivers-rule.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"vercel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
migrate `rollback` command structure for help output
|
||||||
5
.changeset/lucky-roses-pump.md
Normal file
5
.changeset/lucky-roses-pump.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"vercel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
migrate `inti` command structure for help output
|
||||||
5
.changeset/metal-ties-shop.md
Normal file
5
.changeset/metal-ties-shop.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Remove mri workaround
|
||||||
5
.changeset/modern-avocados-double.md
Normal file
5
.changeset/modern-avocados-double.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"vercel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
migrate dev command structure for help output
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
|
|
||||||
5
.changeset/pink-carpets-perform.md
Normal file
5
.changeset/pink-carpets-perform.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vercel/next": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
fix 404 enoent for i18n
|
||||||
5
.changeset/seven-waves-search.md
Normal file
5
.changeset/seven-waves-search.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Migrate `vc secrets` to new help command structure
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
'vercel': patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Replace `inquirer` with `@inquirer/prompts`
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
---
|
|
||||||
"@vercel/remix-builder": patch
|
|
||||||
---
|
|
||||||
|
|
||||||
Add `mjs` and `mts` extensions to vite detection
|
|
||||||
5
.changeset/small-points-type.md
Normal file
5
.changeset/small-points-type.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"vercel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
migrate `promote` command structure for help output
|
||||||
5
.changeset/smooth-gifts-suffer.md
Normal file
5
.changeset/smooth-gifts-suffer.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@vercel/node": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
remove console.log
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
|
|
||||||
Update CODEOWNERS
|
|
||||||
5
.changeset/stupid-paws-press.md
Normal file
5
.changeset/stupid-paws-press.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"examples": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
update examples to use at least node@16
|
||||||
5
.changeset/stupid-vans-leave.md
Normal file
5
.changeset/stupid-vans-leave.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"vercel": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
migrate `git` command structure for help output
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
---
|
|
||||||
---
|
|
||||||
5
.changeset/tidy-ducks-dream.md
Normal file
5
.changeset/tidy-ducks-dream.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'vercel': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Update project command to new data structure
|
||||||
@@ -10,7 +10,6 @@ packages/*/test/fixtures
|
|||||||
packages/cli/@types
|
packages/cli/@types
|
||||||
packages/cli/download
|
packages/cli/download
|
||||||
packages/cli/dist
|
packages/cli/dist
|
||||||
packages/cli/test/fixtures
|
|
||||||
packages/cli/test/dev/fixtures
|
packages/cli/test/dev/fixtures
|
||||||
packages/cli/bin
|
packages/cli/bin
|
||||||
packages/cli/link
|
packages/cli/link
|
||||||
@@ -39,7 +38,7 @@ packages/static-build/test/cache-fixtures
|
|||||||
packages/redwood/test/fixtures
|
packages/redwood/test/fixtures
|
||||||
|
|
||||||
# remix
|
# remix
|
||||||
packages/remix/test/fixtures-*
|
packages/remix/test/fixtures
|
||||||
|
|
||||||
# gatsby-plugin-vercel-analytics
|
# gatsby-plugin-vercel-analytics
|
||||||
packages/gatsby-plugin-vercel-analytics
|
packages/gatsby-plugin-vercel-analytics
|
||||||
|
|||||||
24
.github/CODEOWNERS
vendored
24
.github/CODEOWNERS
vendored
@@ -2,17 +2,19 @@
|
|||||||
# https://help.github.com/en/articles/about-code-owners
|
# https://help.github.com/en/articles/about-code-owners
|
||||||
|
|
||||||
# Restricted Paths
|
# Restricted Paths
|
||||||
* @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55
|
* @TooTallNate @EndangeredMassa @styfle @cb1kenobi @Ethan-Arrowood @trek
|
||||||
/.github/workflows @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @ijjk
|
/.github/workflows @TooTallNate @EndangeredMassa @styfle @cb1kenobi @Ethan-Arrowood @trek @ijjk
|
||||||
/packages/fs-detectors @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @agadzik @chloetedder
|
/packages/fs-detectors @TooTallNate @EndangeredMassa @styfle @cb1kenobi @Ethan-Arrowood @trek @agadzik @chloetedder
|
||||||
/packages/next @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @timneutkens @ijjk @ztanner @huozhi @Ethan-Arrowood @styfle
|
/packages/next @TooTallNate @EndangeredMassa @styfle @cb1kenobi @Ethan-Arrowood @trek @ijjk
|
||||||
/packages/routing-utils @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @ijjk
|
/packages/routing-utils @TooTallNate @EndangeredMassa @styfle @cb1kenobi @Ethan-Arrowood @trek @ijjk
|
||||||
/packages/static-build @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55
|
/packages/edge @vercel/compute
|
||||||
/packages/edge @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @vercel/compute
|
/examples @leerob
|
||||||
/examples @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @leerob
|
/examples/create-react-app @Timer
|
||||||
/examples/create-react-app @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @Timer
|
/examples/nextjs @timneutkens @ijjk @styfle
|
||||||
/examples/nextjs @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @timneutkens @ijjk @ztanner @huozhi @Ethan-Arrowood @styfle
|
/examples/hugo @styfle
|
||||||
/packages/node @TooTallNate @EndangeredMassa @trek @onsclom @jeffsee55 @Kikobeats
|
/examples/jekyll @styfle
|
||||||
|
/examples/zola @styfle
|
||||||
|
/packages/node @TooTallNate @EndangeredMassa @styfle @cb1kenobi @Ethan-Arrowood @trek @Kikobeats
|
||||||
|
|
||||||
# Unrestricted Paths
|
# Unrestricted Paths
|
||||||
.changeset/
|
.changeset/
|
||||||
|
|||||||
4
.github/ISSUE_TEMPLATE/config.yml
vendored
4
.github/ISSUE_TEMPLATE/config.yml
vendored
@@ -1,8 +1,8 @@
|
|||||||
blank_issues_enabled: true
|
blank_issues_enabled: true
|
||||||
contact_links:
|
contact_links:
|
||||||
- name: Bug Report
|
- name: Bug Report
|
||||||
url: https://vercel.com/help
|
url: https://vercel.com/support/request
|
||||||
about: Reach out to our support team
|
about: Report a bug using the Vercel support form
|
||||||
- name: Feature Request
|
- name: Feature Request
|
||||||
url: https://github.com/orgs/vercel/discussions/new?category=ideas
|
url: https://github.com/orgs/vercel/discussions/new?category=ideas
|
||||||
about: Share ideas for new features
|
about: Share ideas for new features
|
||||||
|
|||||||
164
.github/dependabot.yml
vendored
164
.github/dependabot.yml
vendored
@@ -1,164 +0,0 @@
|
|||||||
version: 2
|
|
||||||
|
|
||||||
updates:
|
|
||||||
- directory: /packages/static-build/test/fixtures/angular-v17
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
open-pull-requests-limit: 1
|
|
||||||
reviewers:
|
|
||||||
- 'trek'
|
|
||||||
- 'TooTallNate'
|
|
||||||
- 'EndangeredMassa'
|
|
||||||
commit-message:
|
|
||||||
prefix: '[framework-fixtures]'
|
|
||||||
package-ecosystem: 'npm'
|
|
||||||
allow:
|
|
||||||
- dependency-name: '@angular*'
|
|
||||||
ignore:
|
|
||||||
- dependency-name: '@angular*'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
groups:
|
|
||||||
core:
|
|
||||||
patterns:
|
|
||||||
- '@angular*'
|
|
||||||
update-types:
|
|
||||||
- 'minor'
|
|
||||||
|
|
||||||
- directory: /packages/static-build/test/fixtures/astro-v4
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
open-pull-requests-limit: 1
|
|
||||||
reviewers:
|
|
||||||
- 'trek'
|
|
||||||
- 'TooTallNate'
|
|
||||||
- 'EndangeredMassa'
|
|
||||||
commit-message:
|
|
||||||
prefix: '[framework-fixtures]'
|
|
||||||
package-ecosystem: 'npm'
|
|
||||||
allow:
|
|
||||||
- dependency-name: 'astro*'
|
|
||||||
ignore:
|
|
||||||
- dependency-name: 'astro*'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
groups:
|
|
||||||
core:
|
|
||||||
patterns:
|
|
||||||
- 'astro*'
|
|
||||||
update-types:
|
|
||||||
- 'minor'
|
|
||||||
|
|
||||||
- directory: /packages/static-build/test/fixtures/hydrogen-v2023
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
open-pull-requests-limit: 1
|
|
||||||
reviewers:
|
|
||||||
- 'trek'
|
|
||||||
- 'TooTallNate'
|
|
||||||
- 'EndangeredMassa'
|
|
||||||
commit-message:
|
|
||||||
prefix: '[framework-fixtures]'
|
|
||||||
package-ecosystem: 'npm'
|
|
||||||
allow:
|
|
||||||
- dependency-name: '@remix-run*'
|
|
||||||
- dependency-name: '@shopify*'
|
|
||||||
ignore:
|
|
||||||
- dependency-name: '@remix-run*'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
- dependency-name: '@shopify*'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
groups:
|
|
||||||
core:
|
|
||||||
patterns:
|
|
||||||
- '@remix-run*'
|
|
||||||
- '@shopify*'
|
|
||||||
update-types:
|
|
||||||
- 'minor'
|
|
||||||
|
|
||||||
- directory: /packages/static-build/test/fixtures/ionic-angular-v7
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
open-pull-requests-limit: 1
|
|
||||||
reviewers:
|
|
||||||
- 'trek'
|
|
||||||
- 'TooTallNate'
|
|
||||||
- 'EndangeredMassa'
|
|
||||||
commit-message:
|
|
||||||
prefix: '[framework-fixtures]'
|
|
||||||
package-ecosystem: 'npm'
|
|
||||||
allow:
|
|
||||||
- dependency-name: '@angular*'
|
|
||||||
- dependency-name: '@ionic*'
|
|
||||||
groups:
|
|
||||||
core:
|
|
||||||
patterns:
|
|
||||||
- '@angular*'
|
|
||||||
- '@ionic*'
|
|
||||||
update-types:
|
|
||||||
- 'minor'
|
|
||||||
|
|
||||||
- directory: /packages/static-build/test/fixtures/nuxt-v3
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
open-pull-requests-limit: 1
|
|
||||||
reviewers:
|
|
||||||
- 'trek'
|
|
||||||
- 'TooTallNate'
|
|
||||||
- 'EndangeredMassa'
|
|
||||||
commit-message:
|
|
||||||
prefix: '[framework-fixtures]'
|
|
||||||
package-ecosystem: 'npm'
|
|
||||||
allow:
|
|
||||||
- dependency-name: 'nuxt'
|
|
||||||
- dependency-name: 'vue'
|
|
||||||
- dependency-name: 'vue-router'
|
|
||||||
- dependency-name: '@nuxt-devtools'
|
|
||||||
ignore:
|
|
||||||
- dependency-name: 'nuxt'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
- dependency-name: 'vue'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
- dependency-name: 'vue-router'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
- dependency-name: '@nuxt-devtools'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
groups:
|
|
||||||
core:
|
|
||||||
patterns:
|
|
||||||
- 'nuxt'
|
|
||||||
- 'vue'
|
|
||||||
- 'vue-router'
|
|
||||||
- '@nuxt-devtools'
|
|
||||||
update-types:
|
|
||||||
- 'minor'
|
|
||||||
|
|
||||||
- directory: /packages/static-build/test/fixtures/stencil-v4
|
|
||||||
schedule:
|
|
||||||
interval: 'daily'
|
|
||||||
open-pull-requests-limit: 1
|
|
||||||
reviewers:
|
|
||||||
- 'trek'
|
|
||||||
- 'TooTallNate'
|
|
||||||
- 'EndangeredMassa'
|
|
||||||
commit-message:
|
|
||||||
prefix: '[framework-fixtures]'
|
|
||||||
package-ecosystem: 'npm'
|
|
||||||
allow:
|
|
||||||
- dependency-name: '@stencil/core'
|
|
||||||
ignore:
|
|
||||||
- dependency-name: '@stencil/core'
|
|
||||||
update-types:
|
|
||||||
['version-update:semver-major', 'version-update:semver-patch']
|
|
||||||
groups:
|
|
||||||
core:
|
|
||||||
patterns:
|
|
||||||
- '@stencil/core'
|
|
||||||
update-types:
|
|
||||||
- 'minor'
|
|
||||||
@@ -18,7 +18,7 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 14
|
||||||
- name: Enable corepack
|
- name: Enable corepack
|
||||||
run: corepack enable pnpm
|
run: corepack enable pnpm
|
||||||
- name: Update Gatsby Fixtures
|
- name: Update Gatsby Fixtures
|
||||||
|
|||||||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@@ -76,12 +76,3 @@ jobs:
|
|||||||
script: |
|
script: |
|
||||||
const script = require('./utils/update-latest-release.js')
|
const script = require('./utils/update-latest-release.js')
|
||||||
await script({ github, context })
|
await script({ github, context })
|
||||||
summary:
|
|
||||||
name: Summary
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
timeout-minutes: 5
|
|
||||||
needs:
|
|
||||||
- release
|
|
||||||
steps:
|
|
||||||
- name: Check All
|
|
||||||
run: echo OK
|
|
||||||
|
|||||||
5
.github/workflows/test-lint.yml
vendored
5
.github/workflows/test-lint.yml
vendored
@@ -28,8 +28,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: main
|
ref: main
|
||||||
- run: git fetch origin ${{ github.event.pull_request.head.sha }}:pr-${{ github.event.pull_request.number }}
|
- run: git checkout ${{ github.event.pull_request.head.ref }}
|
||||||
- run: git checkout pr-${{ github.event.pull_request.number }}
|
|
||||||
- name: install pnpm@8.3.1
|
- name: install pnpm@8.3.1
|
||||||
run: npm i -g pnpm@8.3.1
|
run: npm i -g pnpm@8.3.1
|
||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
@@ -50,5 +49,3 @@ jobs:
|
|||||||
- run: pnpm install
|
- run: pnpm install
|
||||||
- run: pnpm run lint
|
- run: pnpm run lint
|
||||||
- run: pnpm run prettier-check
|
- run: pnpm run prettier-check
|
||||||
- run: pnpm run build
|
|
||||||
- run: pnpm run type-check
|
|
||||||
|
|||||||
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@@ -64,17 +64,12 @@ jobs:
|
|||||||
fetch-depth: 2
|
fetch-depth: 2
|
||||||
- uses: actions/setup-node@v3
|
- uses: actions/setup-node@v3
|
||||||
with:
|
with:
|
||||||
node-version: ${{ matrix.nodeVersion || env.NODE_VERSION }}
|
node-version: ${{ env.NODE_VERSION }}
|
||||||
|
|
||||||
- name: Install Hugo
|
- name: Install Hugo
|
||||||
if: matrix.runner == 'macos-latest'
|
if: matrix.runner == 'macos-latest'
|
||||||
run: curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.56.0/hugo_0.56.0_macOS-64bit.tar.gz && tar -xzf hugo_0.56.0_macOS-64bit.tar.gz && mv ./hugo packages/cli/test/dev/fixtures/08-hugo/
|
run: curl -L -O https://github.com/gohugoio/hugo/releases/download/v0.56.0/hugo_0.56.0_macOS-64bit.tar.gz && tar -xzf hugo_0.56.0_macOS-64bit.tar.gz && mv ./hugo packages/cli/test/dev/fixtures/08-hugo/
|
||||||
|
|
||||||
# yarn 1.22.21 introduced a Corepack bug when running tests.
|
|
||||||
# this can be removed once https://github.com/yarnpkg/yarn/issues/9015 is resolved
|
|
||||||
- name: install yarn@1.22.19
|
|
||||||
run: npm i -g yarn@1.22.19
|
|
||||||
|
|
||||||
- name: install pnpm@8.3.1
|
- name: install pnpm@8.3.1
|
||||||
run: npm i -g pnpm@8.3.1
|
run: npm i -g pnpm@8.3.1
|
||||||
|
|
||||||
@@ -88,7 +83,7 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
FORCE_COLOR: '1'
|
FORCE_COLOR: '1'
|
||||||
- name: Test ${{matrix.packageName}}
|
- name: Test ${{matrix.packageName}}
|
||||||
run: node utils/gen.js && node_modules/.bin/turbo run test --summarize --cache-dir=".turbo" --log-order=stream --scope=${{matrix.packageName}} --no-deps -- ${{ join(matrix.testPaths, ' ') }}
|
run: node utils/gen.js && node_modules/.bin/turbo run test --cache-dir=".turbo" --log-order=stream --scope=${{matrix.packageName}} --no-deps -- ${{ join(matrix.testPaths, ' ') }}
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
env:
|
||||||
JEST_JUNIT_OUTPUT_FILE: ${{github.workspace}}/.junit-reports/${{matrix.scriptName}}-${{matrix.packageName}}-${{matrix.chunkNumber}}-${{ matrix.runner }}.xml
|
JEST_JUNIT_OUTPUT_FILE: ${{github.workspace}}/.junit-reports/${{matrix.scriptName}}-${{matrix.packageName}}-${{matrix.chunkNumber}}-${{ matrix.runner }}.xml
|
||||||
@@ -96,19 +91,13 @@ jobs:
|
|||||||
VERCEL_TEST_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }}
|
VERCEL_TEST_TOKEN: ${{ secrets.VERCEL_TEST_TOKEN }}
|
||||||
VERCEL_TEST_REGISTRATION_URL: ${{ secrets.VERCEL_TEST_REGISTRATION_URL }}
|
VERCEL_TEST_REGISTRATION_URL: ${{ secrets.VERCEL_TEST_REGISTRATION_URL }}
|
||||||
FORCE_COLOR: '1'
|
FORCE_COLOR: '1'
|
||||||
- name: 'Determine Turbo HIT or MISS'
|
|
||||||
if: ${{ !cancelled() }}
|
|
||||||
id: turbo-summary
|
|
||||||
shell: bash
|
|
||||||
run: |
|
|
||||||
TURBO_MISS_COUNT=`node utils/determine-turbo-hit-or-miss.js`
|
|
||||||
echo "MISS COUNT: $TURBO_MISS_COUNT"
|
|
||||||
echo "misses=$TURBO_MISS_COUNT" >> $GITHUB_OUTPUT
|
|
||||||
- name: fetch ssl certificate after tests (linux, os x)
|
- name: fetch ssl certificate after tests (linux, os x)
|
||||||
if: matrix.runner != 'windows-latest'
|
if: matrix.runner != 'windows-latest'
|
||||||
run: echo | openssl s_client -showcerts -servername 'api.vercel.com' -connect 76.76.21.21:443
|
run: echo | openssl s_client -showcerts -servername 'api.vercel.com' -connect 76.76.21.21:443
|
||||||
|
|
||||||
- name: 'Upload Test Report to Datadog'
|
- name: 'Upload Test Report to Datadog'
|
||||||
if: ${{ steps['turbo-summary'].outputs.misses != '0' && !cancelled() }}
|
if: always()
|
||||||
run: 'npx @datadog/datadog-ci@2.18.1 junit upload --service vercel-cli .junit-reports'
|
run: 'npx @datadog/datadog-ci@2.18.1 junit upload --service vercel-cli .junit-reports'
|
||||||
env:
|
env:
|
||||||
DATADOG_API_KEY: ${{secrets.DATADOG_API_KEY_CLI}}
|
DATADOG_API_KEY: ${{secrets.DATADOG_API_KEY_CLI}}
|
||||||
|
|||||||
2
.github/workflows/update-remix-run-dev.yml
vendored
2
.github/workflows/update-remix-run-dev.yml
vendored
@@ -17,8 +17,6 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- name: Setup node
|
- name: Setup node
|
||||||
uses: actions/setup-node@v3
|
uses: actions/setup-node@v3
|
||||||
with:
|
|
||||||
node-version: 16
|
|
||||||
- name: Enable corepack
|
- name: Enable corepack
|
||||||
run: corepack enable pnpm
|
run: corepack enable pnpm
|
||||||
- name: Update @remix-run/dev
|
- name: Update @remix-run/dev
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
v16.20.2
|
|
||||||
@@ -29,7 +29,6 @@ turbo-cache-key.json
|
|||||||
packages/*/dist
|
packages/*/dist
|
||||||
packages/*/node_modules
|
packages/*/node_modules
|
||||||
packages/**/test/fixtures
|
packages/**/test/fixtures
|
||||||
packages/**/test/fixtures-*
|
|
||||||
packages/**/test/dev/fixtures
|
packages/**/test/dev/fixtures
|
||||||
packages/**/test/build-fixtures
|
packages/**/test/build-fixtures
|
||||||
packages/**/test/cache-fixtures
|
packages/**/test/cache-fixtures
|
||||||
|
|||||||
@@ -385,16 +385,15 @@ This is a [class](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refere
|
|||||||
|
|
||||||
This is an abstract enumeration type that is implemented by one of the following possible `String` values:
|
This is an abstract enumeration type that is implemented by one of the following possible `String` values:
|
||||||
|
|
||||||
- `nodejs20.x`
|
|
||||||
- `nodejs18.x`
|
- `nodejs18.x`
|
||||||
- `nodejs16.x`
|
- `nodejs16.x`
|
||||||
|
- `go1.x`
|
||||||
- `java11`
|
- `java11`
|
||||||
- `python3.9`
|
- `python3.9`
|
||||||
- `dotnet6`
|
- `dotnet6`
|
||||||
- `dotnetcore3.1`
|
- `dotnetcore3.1`
|
||||||
- `ruby2.7`
|
- `ruby2.7`
|
||||||
- `provided.al2`
|
- `provided.al2`
|
||||||
- `provided.al2023`
|
|
||||||
|
|
||||||
## `@vercel/build-utils` Helper Functions
|
## `@vercel/build-utils` Helper Functions
|
||||||
|
|
||||||
|
|||||||
@@ -13,17 +13,17 @@
|
|||||||
<a href="https://vercel.com/docs"><strong>Documentation</strong></a> ·
|
<a href="https://vercel.com/docs"><strong>Documentation</strong></a> ·
|
||||||
<a href="https://vercel.com/changelog"><strong>Changelog</strong></a> ·
|
<a href="https://vercel.com/changelog"><strong>Changelog</strong></a> ·
|
||||||
<a href="https://vercel.com/templates"><strong>Templates</strong></a> ·
|
<a href="https://vercel.com/templates"><strong>Templates</strong></a> ·
|
||||||
<a href="https://vercel.com/docs/cli"><strong>CLI</strong></a>
|
<a href="https://vercel.com/cli"><strong>CLI</strong></a>
|
||||||
</p>
|
</p>
|
||||||
<br/>
|
<br/>
|
||||||
|
|
||||||
## Vercel
|
## Vercel
|
||||||
|
|
||||||
Vercel’s Frontend Cloud provides the developer experience and infrastructure to build, scale, and secure a faster, more personalized Web.
|
Vercel's frontend cloud gives developers frameworks, workflows, and infrastructure to build a faster, more personalized web.
|
||||||
|
|
||||||
## Deploy
|
## Deploy
|
||||||
|
|
||||||
Get started by [importing a project](https://vercel.com/new) or using the [Vercel CLI](https://vercel.com/docs/cli). Then, `git push` to deploy.
|
Get started by [importing a project](https://vercel.com/new) or using the [Vercel CLI](https://vercel.com/cli). Then, `git push` to deploy.
|
||||||
|
|
||||||
## Documentation
|
## Documentation
|
||||||
|
|
||||||
|
|||||||
13
examples/CHANGELOG.md
vendored
13
examples/CHANGELOG.md
vendored
@@ -1,13 +0,0 @@
|
|||||||
# examples
|
|
||||||
|
|
||||||
## null
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- chore: update Nuxt example ([#10869](https://github.com/vercel/vercel/pull/10869))
|
|
||||||
|
|
||||||
## null
|
|
||||||
|
|
||||||
### Patch Changes
|
|
||||||
|
|
||||||
- update examples to use at least node@16 ([#10395](https://github.com/vercel/vercel/pull/10395))
|
|
||||||
2
examples/README.md
vendored
2
examples/README.md
vendored
@@ -1,6 +1,6 @@
|
|||||||
# Vercel Examples
|
# Vercel Examples
|
||||||
|
|
||||||
To get started using any of these examples as your own project, [install Vercel](https://vercel.com/docs/cli) and use either of the following commands in your terminal:
|
To get started using any of these examples as your own project, [install Vercel](https://vercel.com/cli) and use either of the following commands in your terminal:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
vercel init # Pick an example in the CLI
|
vercel init # Pick an example in the CLI
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy angular', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('angular');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy astro', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('astro');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy blitzjs', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('blitzjs');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy brunch', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('brunch');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy create-react-app', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('create-react-app');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy docusaurus-2', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('docusaurus-2');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy docusaurus', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('docusaurus');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy dojo', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('dojo');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy eleventy', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('eleventy');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy ember', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('ember');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy gatsby', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('gatsby');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy gridsome', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('gridsome');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy hexo', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('hexo');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy hugo', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('hugo');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy hydrogen-2', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('hydrogen-2');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy hydrogen', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('hydrogen');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy ionic-angular', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('ionic-angular');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy ionic-react', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('ionic-react');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy jekyll', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('jekyll');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy middleman', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('middleman');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy nextjs', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('nextjs');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy node_modules', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('node_modules');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy nuxtjs', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('nuxtjs');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy parcel', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('parcel');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy polymer', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('polymer');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy preact', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('preact');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy redwoodjs', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('redwoodjs');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy remix', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('remix');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy saber', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('saber');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy sanity', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('sanity');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy sapper', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('sapper');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy scully', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('scully');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy solidstart', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('solidstart');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy stencil', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('stencil');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy storybook', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('storybook');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy svelte', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('svelte');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy sveltekit-1', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('sveltekit-1');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy sveltekit', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('sveltekit');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy umijs', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('umijs');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy vite', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('vite');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy vitepress', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('vitepress');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy vue', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('vue');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy vuepress', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('vuepress');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
import { deployExample } from '../test-utils';
|
import { deployExample } from '../test-utils';
|
||||||
it('[examples] should deploy zola', async () => {
|
it('should deploy', async () => {
|
||||||
await deployExample('zola');
|
await deployExample(__filename);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -3,10 +3,9 @@
|
|||||||
This directory is a brief example of an [Astro](https://astro.build/) site that can be deployed to Vercel with zero configuration. This demo showcases:
|
This directory is a brief example of an [Astro](https://astro.build/) site that can be deployed to Vercel with zero configuration. This demo showcases:
|
||||||
|
|
||||||
- `/` - A static page (pre-rendered)
|
- `/` - A static page (pre-rendered)
|
||||||
- `/ssr` - A page that uses server-side rendering (through [Vercel Edge Functions](https://vercel.com/docs/functions/edge-functions))
|
- `/ssr` - A page that uses server-side rendering (through Vercel Edge Functions)
|
||||||
- `/ssr-with-swr-caching` - Similar to the previous page, but also caches the response on the [Vercel Edge Network](https://vercel.com/docs/edge-network/overview) using `cache-control` headers
|
- `/ssr-with-swr-caching` - Similar to the previous page, but also caches the response on the Vercel Edge Network using `cache-control` headers
|
||||||
- `/image` - Astro [Asset](https://docs.astro.build/en/guides/assets/) using Vercel [Image Optimization](https://vercel.com/docs/image-optimization)
|
- `/edge.json` - An Astro API Endpoint that returns JSON data using Vercel Edge Functions
|
||||||
- `/edge.json` - An Astro API Endpoint that returns JSON data using [Vercel Edge Functions](https://vercel.com/docs/functions/edge-functions)
|
|
||||||
|
|
||||||
Learn more about [Astro on Vercel](https://vercel.com/docs/frameworks/astro).
|
Learn more about [Astro on Vercel](https://vercel.com/docs/frameworks/astro).
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,7 @@
|
|||||||
import { defineConfig } from 'astro/config';
|
import { defineConfig } from 'astro/config';
|
||||||
// Use Vercel Edge Functions (Recommended)
|
|
||||||
import vercel from '@astrojs/vercel/edge';
|
import vercel from '@astrojs/vercel/edge';
|
||||||
// Can also use Serverless Functions
|
|
||||||
// import vercel from '@astrojs/vercel/serverless';
|
|
||||||
// Or a completely static build
|
|
||||||
// import vercel from '@astrojs/vercel/static';
|
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'server',
|
output: 'server',
|
||||||
experimental: {
|
adapter: vercel(),
|
||||||
assets: true
|
|
||||||
},
|
|
||||||
adapter: vercel({
|
|
||||||
imageService: true,
|
|
||||||
}),
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -8,8 +8,8 @@
|
|||||||
"astro": "astro"
|
"astro": "astro"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@astrojs/vercel": "3.8.2",
|
"@astrojs/vercel": "3.2.2",
|
||||||
"astro": "^2.10.14",
|
"astro": "^2.2.1",
|
||||||
"react": "18.2.0",
|
"react": "18.2.0",
|
||||||
"web-vitals": "^3.3.1"
|
"web-vitals": "^3.3.1"
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 3.2 KiB |
2
examples/astro/src/env.d.ts
vendored
2
examples/astro/src/env.d.ts
vendored
@@ -1,4 +1,4 @@
|
|||||||
/// <reference types="astro/client-image" />
|
/// <reference types="astro/client" />
|
||||||
|
|
||||||
interface ImportMetaEnv {
|
interface ImportMetaEnv {
|
||||||
readonly PUBLIC_VERCEL_ANALYTICS_ID: string;
|
readonly PUBLIC_VERCEL_ANALYTICS_ID: string;
|
||||||
|
|||||||
@@ -1,6 +0,0 @@
|
|||||||
---
|
|
||||||
import { Image } from 'astro:assets';
|
|
||||||
import astroLogo from '../assets/logo.png';
|
|
||||||
---
|
|
||||||
|
|
||||||
<Image src={astroLogo} alt="Astro Logo" width={50} quality={75} />
|
|
||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"engines": {
|
|
||||||
"node": "18.x"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -8,7 +8,7 @@ This directory is a brief example of a [Hydrogen v2](https://shopify.dev/custom-
|
|||||||
|
|
||||||
_Live Example: https://hydrogen-v2-template.vercel.app_
|
_Live Example: https://hydrogen-v2-template.vercel.app_
|
||||||
|
|
||||||
You can also deploy using the [Vercel CLI](https://vercel.com/docs/cli):
|
You can also deploy using the [Vercel CLI](https://vercel.com/cli):
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
npm i -g vercel
|
npm i -g vercel
|
||||||
|
|||||||
7992
examples/hydrogen/package-lock.json
generated
7992
examples/hydrogen/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
6467
examples/hydrogen/yarn.lock
Normal file
6467
examples/hydrogen/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
@@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
<!-- Replace the API key with your own, see:
|
<!-- Replace the API key with your own, see:
|
||||||
https://developers.google.com/maps/documentation/javascript/get-api-key -->
|
https://developers.google.com/maps/documentation/javascript/get-api-key -->
|
||||||
<!-- <script async="" defer="" src="https://maps.googleapis.com/maps/api/js?key=<YOUR_GOOGLE_MAPS_API_KEY>"></script> -->
|
<!-- <script async="" defer="" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyB8pf6ZdFQj5qw7rc_HSGrhUwQKfIe9ICw"></script> -->
|
||||||
|
|
||||||
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
<noscript>Please enable JavaScript to continue using this application.</noscript>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
"react-router": "^5.1.2",
|
"react-router": "^5.1.2",
|
||||||
"react-router-dom": "^5.1.2",
|
"react-router-dom": "^5.1.2",
|
||||||
"react-scripts": "3.3.0",
|
"react-scripts": "3.3.0",
|
||||||
"typescript": "4.9.5"
|
"typescript": "3.8.3"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "react-scripts start",
|
"start": "react-scripts start",
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -27,6 +27,3 @@ end
|
|||||||
|
|
||||||
# Performance-booster for watching directories on Windows
|
# Performance-booster for watching directories on Windows
|
||||||
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
|
gem "wdm", "~> 0.1.1", :platforms => [:mingw, :x64_mingw, :mswin]
|
||||||
|
|
||||||
# Webrick not installed by default in Ruby 3.0+
|
|
||||||
gem "webrick"
|
|
||||||
|
|||||||
@@ -1,20 +1,20 @@
|
|||||||
GEM
|
GEM
|
||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
addressable (2.8.6)
|
addressable (2.7.0)
|
||||||
public_suffix (>= 2.0.2, < 6.0)
|
public_suffix (>= 2.0.2, < 5.0)
|
||||||
colorator (1.1.0)
|
colorator (1.1.0)
|
||||||
concurrent-ruby (1.2.3)
|
concurrent-ruby (1.1.8)
|
||||||
em-websocket (0.5.3)
|
em-websocket (0.5.2)
|
||||||
eventmachine (>= 0.12.9)
|
eventmachine (>= 0.12.9)
|
||||||
http_parser.rb (~> 0)
|
http_parser.rb (~> 0.6.0)
|
||||||
eventmachine (1.2.7)
|
eventmachine (1.2.7)
|
||||||
ffi (1.16.3)
|
ffi (1.14.2)
|
||||||
forwardable-extended (2.6.0)
|
forwardable-extended (2.6.0)
|
||||||
http_parser.rb (0.8.0)
|
http_parser.rb (0.6.0)
|
||||||
i18n (1.14.1)
|
i18n (1.8.9)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
jekyll (4.2.2)
|
jekyll (4.2.0)
|
||||||
addressable (~> 2.4)
|
addressable (~> 2.4)
|
||||||
colorator (~> 1.0)
|
colorator (~> 1.0)
|
||||||
em-websocket (~> 0.5)
|
em-websocket (~> 0.5)
|
||||||
@@ -29,20 +29,20 @@ GEM
|
|||||||
rouge (~> 3.0)
|
rouge (~> 3.0)
|
||||||
safe_yaml (~> 1.0)
|
safe_yaml (~> 1.0)
|
||||||
terminal-table (~> 2.0)
|
terminal-table (~> 2.0)
|
||||||
jekyll-feed (0.17.0)
|
jekyll-feed (0.15.1)
|
||||||
jekyll (>= 3.7, < 5.0)
|
jekyll (>= 3.7, < 5.0)
|
||||||
jekyll-sass-converter (2.2.0)
|
jekyll-sass-converter (2.1.0)
|
||||||
sassc (> 2.0.1, < 3.0)
|
sassc (> 2.0.1, < 3.0)
|
||||||
jekyll-seo-tag (2.8.0)
|
jekyll-seo-tag (2.7.1)
|
||||||
jekyll (>= 3.8, < 5.0)
|
jekyll (>= 3.8, < 5.0)
|
||||||
jekyll-watch (2.2.1)
|
jekyll-watch (2.2.1)
|
||||||
listen (~> 3.0)
|
listen (~> 3.0)
|
||||||
kramdown (2.4.0)
|
kramdown (2.3.0)
|
||||||
rexml
|
rexml
|
||||||
kramdown-parser-gfm (1.1.0)
|
kramdown-parser-gfm (1.1.0)
|
||||||
kramdown (~> 2.0)
|
kramdown (~> 2.0)
|
||||||
liquid (4.0.4)
|
liquid (4.0.3)
|
||||||
listen (3.9.0)
|
listen (3.4.1)
|
||||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||||
rb-inotify (~> 0.9, >= 0.9.10)
|
rb-inotify (~> 0.9, >= 0.9.10)
|
||||||
mercenary (0.4.0)
|
mercenary (0.4.0)
|
||||||
@@ -52,22 +52,21 @@ GEM
|
|||||||
jekyll-seo-tag (~> 2.1)
|
jekyll-seo-tag (~> 2.1)
|
||||||
pathutil (0.16.2)
|
pathutil (0.16.2)
|
||||||
forwardable-extended (~> 2.6)
|
forwardable-extended (~> 2.6)
|
||||||
public_suffix (5.0.4)
|
public_suffix (4.0.6)
|
||||||
rb-fsevent (0.11.2)
|
rb-fsevent (0.10.4)
|
||||||
rb-inotify (0.10.1)
|
rb-inotify (0.10.1)
|
||||||
ffi (~> 1.0)
|
ffi (~> 1.0)
|
||||||
rexml (3.2.6)
|
rexml (3.2.4)
|
||||||
rouge (3.30.0)
|
rouge (3.26.0)
|
||||||
safe_yaml (1.0.5)
|
safe_yaml (1.0.5)
|
||||||
sassc (2.4.0)
|
sassc (2.4.0)
|
||||||
ffi (~> 1.9)
|
ffi (~> 1.9)
|
||||||
terminal-table (2.0.0)
|
terminal-table (2.0.0)
|
||||||
unicode-display_width (~> 1.1, >= 1.1.1)
|
unicode-display_width (~> 1.1, >= 1.1.1)
|
||||||
unicode-display_width (1.8.0)
|
unicode-display_width (1.7.0)
|
||||||
webrick (1.8.1)
|
|
||||||
|
|
||||||
PLATFORMS
|
PLATFORMS
|
||||||
ruby
|
x86_64-linux
|
||||||
|
|
||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
jekyll (~> 4.2.0)
|
jekyll (~> 4.2.0)
|
||||||
@@ -76,7 +75,6 @@ DEPENDENCIES
|
|||||||
tzinfo (~> 1.2)
|
tzinfo (~> 1.2)
|
||||||
tzinfo-data
|
tzinfo-data
|
||||||
wdm (~> 0.1.1)
|
wdm (~> 0.1.1)
|
||||||
webrick
|
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
2.5.6
|
2.2.4
|
||||||
|
|||||||
@@ -1,5 +0,0 @@
|
|||||||
{
|
|
||||||
"engines": {
|
|
||||||
"node": "18.x"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
source 'https://rubygems.org'
|
source 'https://rubygems.org'
|
||||||
|
|
||||||
gem 'middleman', '~> 4.5'
|
gem 'middleman', '~> 4.2'
|
||||||
gem 'middleman-autoprefixer', '~> 3.0'
|
gem 'middleman-autoprefixer', '~> 2.7'
|
||||||
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby, :x64_mingw]
|
gem 'tzinfo-data', platforms: [:mswin, :mingw, :jruby, :x64_mingw]
|
||||||
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw]
|
gem 'wdm', '~> 0.1', platforms: [:mswin, :mingw, :x64_mingw]
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user