Skip to content

Update getting-started.mdx #1

Update getting-started.mdx

Update getting-started.mdx #1

Workflow file for this run

# Build, format, analyze and test the Docs Next.js site code.
name: Docs-CI
on:
# Runs on pull requests and pushes targeting the default branch
pull_request:
push:
branches: [main]
paths:
- "docs/**"
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages.
permissions:
contents: read
jobs:
changes:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Setup Node
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: "20"
cache: npm
cache-dependency-path: docs/package-lock.json
- name: Restore cache
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: |
docs/.next/cache
# Generate a new cache whenever packages or source files change.
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
# If source files changed but packages didn't, rebuild from a prior cache.
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-
- name: Install dependencies
working-directory: docs
run: npm install
- name: Build with @cloudflare/next-on-pages
working-directory: docs
run: npm run pages:build