Skip to content

Commit

Permalink
Added nojekyll
Browse files Browse the repository at this point in the history
  • Loading branch information
prjctimg committed Oct 11, 2023
1 parent aa1c68e commit c6e0469
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 9 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build and Deploy
on:
push:
branches:
- api
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
persist-credentials: false

- name: Build
run: |
npm ci
npm run build
- name: Deploy
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GH_PAT }}
BRANCH: gh-pages
FOLDER: out
CLEAN: true
Empty file added .nojekyll
Empty file.
8 changes: 0 additions & 8 deletions Blog.code-workspace

This file was deleted.

4 changes: 4 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ const securityHeaders = [
},
]

const basePath = process.env.NODE_ENV === 'production' ? '/huetiful' : ''

module.exports = withBundleAnalyzer({
basePath,
assetPrefix: `${basePath}/`,
reactStrictMode: true,
pageExtensions: ['js', 'jsx', 'md', 'mdx'],
eslint: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"compose": "node ./scripts/compose.js",
"start": "cross-env SOCKET=true node ./scripts/next-remote-watch.js ./data",
"dev": "next dev",
"build": "next build && node ./scripts/generate-sitemap",
"build": "next build && node ./scripts/generate-sitemap && next export",
"serve": "next start",
"analyze": "cross-env ANALYZE=true next build",
"lint": "next lint --fix --dir pages --dir components --dir lib --dir layouts --dir scripts",
Expand Down

0 comments on commit c6e0469

Please sign in to comment.