diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1314477..3e8de5b 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -174,46 +174,3 @@ jobs: destination_container_repo: rainbowcafe/silvy provider: dockerhub readme_file: 'README.md' - - deploy-live: - name: Deploy (Vercel) - runs-on: ubuntu-latest - needs: semantic - if: needs.semantic.outputs.published == 'true' - steps: - - uses: actions/checkout@v2 - - name: Cache Node Modules - id: cache-npm - uses: actions/cache@v3 - with: - path: node_modules/ - key: ${{ runner.os }}-${{ hashFiles('**/package-lock.json') }} - - name: Cache NextJS - id: cache-nextjs - uses: actions/cache@v3 - with: - path: | - ~/.npm - ${{ github.workspace }}/.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') }}- - - run: npx vercel pull --environment=production --yes --token=${VERCEL_TOKEN} - env: - VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }} - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - - run: npx vercel build --prod - env: - VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }} - VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }} - - uses: amondnet/vercel-action@v20 - with: - github-token: ${{ secrets.GITHUB_TOKEN }} - vercel-token: ${{ secrets.VERCEL_TOKEN }} - scope: rainbow-cafe - vercel-args: '--prod --prebuilt' - vercel-org-id: ${{ secrets.VERCEL_ORG_ID}} - vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID}} - alias-domains: silvy.rains.cafe diff --git a/.gitignore b/.gitignore index 5c9b324..981f6cc 100644 --- a/.gitignore +++ b/.gitignore @@ -25,4 +25,3 @@ yarn-error.log* # local env files .env* -.vercel diff --git a/README.md b/README.md index 42e8010..a85d983 100644 --- a/README.md +++ b/README.md @@ -60,7 +60,7 @@ services: [_**Want to Contribute?**_](/CONTRIBUTING.md) -[![Vercel][vercel-image]][vercel-url] +[![Deploys by Netlify][netlify-image]][netlify-url] -[vercel-image]: https://user-images.githubusercontent.com/9692284/192920193-fc967232-e0ba-425f-af63-c8eff3fe3216.png -[vercel-url]: https://vercel.com/?utm_source=rainbow-cafe&utm_campaign=oss +[netlify-image]: https://www.netlify.com/v3/img/components/netlify-color-accent.svg +[netlify-url]: https://www.netlify.com diff --git a/package.json b/package.json index d2950d6..23a5420 100644 --- a/package.json +++ b/package.json @@ -11,8 +11,7 @@ "build": "next build", "lint": "eslint src/**/*.tsx", "test": "jest --coverage=false", - "test:coverage": "jest --coverage", - "pull": "vercel env pull .env.local -y" + "test:coverage": "jest --coverage" }, "dependencies": { "@emotion/react": "^11.10.5", @@ -49,7 +48,6 @@ "jest-environment-jsdom": "^29.3.1", "sass": "^1.56.1", "ts-jest": "^29.0.3", - "typescript": "^4.1.2", - "vercel": "^28.4.17" + "typescript": "^4.1.2" } } diff --git a/public/netlify.svg b/public/netlify.svg new file mode 100644 index 0000000..80834cd --- /dev/null +++ b/public/netlify.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/public/vercel-logo.svg b/public/vercel-logo.svg deleted file mode 100644 index 0fbca5b..0000000 --- a/public/vercel-logo.svg +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/src/components/universal/Footer.tsx b/src/components/universal/Footer.tsx index 3e49113..608feec 100644 --- a/src/components/universal/Footer.tsx +++ b/src/components/universal/Footer.tsx @@ -5,7 +5,6 @@ import { Direction } from '../../constants/components'; import { IconButton } from '../common/Button/IconButton'; import { BsGithub } from 'react-icons/bs'; import { Button } from '../common/Button/Button'; -import Link from 'next/link'; export function Footer() { return ( @@ -13,12 +12,12 @@ export function Footer() {
- {router.isReady && ( - - )} +