Skip to content

Commit

Permalink
Merge pull request #20 from sanity-io/next-13
Browse files Browse the repository at this point in the history
Update front-end to Next 13
  • Loading branch information
SimeonGriggs committed Jun 22, 2023
2 parents e0b19db + 81b41d0 commit ad78a7c
Show file tree
Hide file tree
Showing 88 changed files with 22,562 additions and 6,486 deletions.
11 changes: 11 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"extends": "@sanity/eslint-config-studio",
"plugins": ["prettier", "simple-import-sort"],
"rules": {
"prettier/prettier": "error",
"react/react-in-jsx-scope": "off",
"react/prop-types": "off",
"simple-import-sort/imports": "error",
"simple-import-sort/exports": "error"
}
}
52 changes: 0 additions & 52 deletions .eslintrc.js

This file was deleted.

21 changes: 10 additions & 11 deletions .github/workflows/deploy-sanity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ on:
push:
branches: [main]
paths-ignore:
- "web/**"
- 'web/**'
jobs:
deploy:
sanity-deploy:
runs-on: ubuntu-latest
name: Deploy Sanity
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment
uses: actions/setup-node@v2
with:
node-version: 16.x
- name: Checkout
uses: actions/checkout@master
- name: Install dependencies
run: |
cd studio
npm install --legacy-peer-deps
npm install @sanity/cli
- name: Deploy Sanity Studio
npm install
- name: Deploy
env:
SANITY_AUTH_TOKEN: ${{ secrets.STUDIO_DEPLOY }}
run: |
set -e
cd studio
SANITY_AUTH_TOKEN="${{ secrets.STUDIO_DEPLOY }}" SANITY_STUDIO_GOOGLE_TRANSLATE_API_KEY="${{ secrets.SANITY_STUDIO_GOOGLE_TRANSLATE_API_KEY }}" SANITY_STUDIO_PREVIEW_SECRET="${{ secrets.SANITY_STUDIO_PREVIEW_SECRET }}" SANITY_STUDIO_PREVIEW_URL="${{ secrets.SANITY_STUDIO_PREVIEW_URL }}" npx sanity deploy
SANITY_AUTH_TOKEN="${{ secrets.STUDIO_DEPLOY }}" SANITY_STUDIO_GOOGLE_TRANSLATE_API_KEY="${{ secrets.SANITY_STUDIO_GOOGLE_TRANSLATE_API_KEY }}" SANITY_STUDIO_PREVIEW_SECRET="${{ secrets.SANITY_STUDIO_PREVIEW_SECRET }}" SANITY_STUDIO_PREVIEW_URL="${{ secrets.SANITY_STUDIO_PREVIEW_URL }}" npx sanity@latest deploy
Loading

2 comments on commit ad78a7c

@vercel
Copy link

@vercel vercel bot commented on ad78a7c Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

demo-course-platform-studio – ./studio

demo-course-platform-studio-git-main.sanity.build
demo-course-platform-studio.sanity.build

@vercel
Copy link

@vercel vercel bot commented on ad78a7c Jun 22, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

demo-course-platform – ./web

demo-course-platform.sanity.build
demo-course-platform-git-main.sanity.build

Please sign in to comment.