Skip to content

Commit

Permalink
node 20, astro 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Reed Nelson committed Oct 23, 2023
1 parent ba105c0 commit b1e0c40
Show file tree
Hide file tree
Showing 20 changed files with 7,522 additions and 5,665 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Build and Deploy to GitHub Pages

on:
# Trigger the workflow every time you push to the `main` branch
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

# Allow this job to clone the repo and create a page deployment
permissions:
contents: read
pages: write
Expand All @@ -22,9 +19,9 @@ jobs:
- name: Install, build, and upload your site
uses: withastro/action@v0
with:
path: . # The root location of your Astro project inside the repository. (optional)
node-version: 18 # The specific version of Node that should be used to build your site. Defaults to 16. (optional)
package-manager: npm # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
path: .
node-version: 20
package-manager: npm

deploy:
needs: build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ jobs:
uses: withastro/action@v0
with:
path: .
node-version: 18
node-version: 20
package-manager: npm
13 changes: 3 additions & 10 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import image from "@astrojs/image";
import mdx from "@astrojs/mdx";
import react from "@astrojs/react";
import sitemap from "@astrojs/sitemap";
Expand All @@ -11,10 +10,9 @@ import config from "./src/config/config.json";
import rehypeKatex from "rehype-katex";
import remarkMath from "remark-math";

// https://astro.build/config
export default defineConfig({
site: config.site.base_url ? config.site.base_url : "http://examplesite.com",
base: config.site.base_path ? config.site.base_path : "/",
site: config.site.base_url,
base: config.site.base_path,
trailingSlash: config.site.trailing_slash ? "always" : "never",
integrations: [
react(),
Expand All @@ -24,9 +22,6 @@ export default defineConfig({
applyBaseStyles: false,
},
}),
image({
serviceEntryPoint: "@astrojs/image/sharp",
}),
AutoImport({
imports: [
"@/shortcodes/Button",
Expand All @@ -52,9 +47,7 @@ export default defineConfig({
remarkMath,
],
rehypePlugins: [
[rehypeKatex, {
// Katex plugin options
}]
[rehypeKatex, {}]
],
shikiConfig: {
theme: "one-dark-pro",
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ publish = "dist"
command = "yarn build"

[build.environment]
NODE_VERSION = "18"
NODE_VERSION = "20"
Loading

0 comments on commit b1e0c40

Please sign in to comment.