Skip to content

Commit

Permalink
Add Netlify-cli and deploy (#60)
Browse files Browse the repository at this point in the history
* add netlify-cli and config

* try fixed form buttons

* do not deploy to gh pages

* update publish dir
  • Loading branch information
toreylittlefield committed Sep 24, 2023
1 parent 5b43288 commit 4058429
Show file tree
Hide file tree
Showing 8 changed files with 17,613 additions and 228 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,17 +86,17 @@ jobs:
path: ./packages/client/out

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
with:
local-dir: ./packages/client/out
token: ${{ secrets.GITHUB_TOKEN }}
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# runs-on: ubuntu-latest
# needs: build
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v2
# with:
# local-dir: ./packages/client/out
# token: ${{ secrets.GITHUB_TOKEN }}

4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,6 @@ node_modules
.vscode

# .next
.next
.next
# Local Netlify folder
.netlify
21 changes: 21 additions & 0 deletions netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# example netlify.toml
[build]
command = "npm run build"
functions = "netlify/functions"
publish = "./packages/client/.next"

## Uncomment to use this redirect for Single Page Applications like create-react-app.
## Not needed for static site generators.
#[[redirects]]
# from = "/*"
# to = "/index.html"
# status = 200

## (optional) Settings for Netlify Dev
## https://github.com/netlify/cli/blob/main/docs/netlify-dev.md#project-detection
#[dev]
# command = "yarn start" # Command to start your dev server
# port = 3000 # Port that the dev server will be listening on
# publish = "dist" # Folder with the static content for _redirect file

## more info on configuring this file: https://docs.netlify.com/configure-builds/file-based-configuration/
Loading

0 comments on commit 4058429

Please sign in to comment.