Skip to content

Commit

Permalink
Merge pull request #18 from acm-uiuc/claire2
Browse files Browse the repository at this point in the history
Claire2
  • Loading branch information
Jish2 authored Nov 17, 2023
2 parents a75f936 + d7f85c3 commit 2d76c3e
Show file tree
Hide file tree
Showing 9 changed files with 942 additions and 119 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/deploy-next.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Giithub pages overwrite

on:
push:
branches:
# NOTE: You may want to limit the trigger branch to be "main" or "master" etc.
- "prod"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3

- name: Generate your content
run: echo "Optional placeholder. Put your project's static website generator command here."

- name: Publish current workdir (which contains generated content) to GitHub Pages
uses: rayluo/github-pages-overwriter@v1.3

with:
# Optional. Default value "." means the root directory of your project will be published.
# You can use whatever directory your project uses, for example "wwwroot".
# Such a directory does *not* have to already exist in your repo,
# it could be an output directory created dynamically by your static website builder.
source-directory: client/build

# Optional. Default value "gh-pages".
# It specifies the temporary branch which hosts the static website.
# Each build will OVERWRITE this branch.
target-branch: prod
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ venv/
__pycache__
.DS_Store
test.json
build
5 changes: 4 additions & 1 deletion client/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": ["next/babel", "next/core-web-vitals"]
// "extends": ["next/babel", "next/core-web-vitals"]
"extends": [
"next"
]
}
20 changes: 10 additions & 10 deletions client/next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
images: {
// domains: ["encrypted-tbn2.gstatic.com","corporatephotographerslondon.com"],
// "cultivatedculture.com",
// remotePatterns: [
// {
// protocol: "https",
// hostname: "encrypted-tbn2.gstatic.com",
// },
// ],
},
output: 'export',

// Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
// trailingSlash: true,

// Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href`
// skipTrailingSlashRedirect: true,

// Optional: Change the output directory `out` -> `dist`
distDir: 'build',
};

module.exports = nextConfig;
Loading

0 comments on commit 2d76c3e

Please sign in to comment.