Skip to content

Commit

Permalink
Merge pull request #22 from PelicanPlatform/test-build
Browse files Browse the repository at this point in the history
Update build process to check if build fails first
  • Loading branch information
CannonLock authored Mar 29, 2024
2 parents 30901ec + 8b80530 commit a2c9b7c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
name: Deploy Next.js site to Pages

on:
pull_request:
branches: ["main"]
# Runs on pushes targeting the default branch
push:
branches: ["main"]
Expand Down Expand Up @@ -81,6 +83,7 @@ jobs:
find ./out | sed -e "s/[^-][^\/]*\// |/g" -e "s/|\([^ ]\)/|-\1/"
- name: Deploy 🚀
if: ${{ github.event_name == 'push' }}
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: ./src/out # The folder the action should deploy.
4 changes: 2 additions & 2 deletions src/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ const nextConfig = {
output: "export",
images: {
loader: "custom",
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384],
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
imageSizes: [16, 96, 384],
deviceSizes: [640, 1200, 3840],
},
transpilePackages: ["next-image-export-optimizer"],
env: {
Expand Down

0 comments on commit a2c9b7c

Please sign in to comment.