Skip to content

Commit c2514fc

Browse files
committed
Update Astro configuration and Keystatic settings
- Changed site URL in astro.config.mjs to 'https://alt-del-code.github.io'. - Modified Tailwind configuration to disable base styles application. - Added new build settings in astro.config.mjs for asset management and stylesheets. - Updated Keystatic configuration to ensure consistent key formatting for the blog entry.
1 parent 50af706 commit c2514fc

4 files changed

Lines changed: 61 additions & 6 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Deploy to GitHub Pages
2+
3+
on:
4+
# Trigger the workflow every time you push to the `main` branch
5+
# Using a different branch name? Replace `main` with your branch’s name
6+
push:
7+
branches: [ main ]
8+
# Allows you to run this workflow manually from the Actions tab on GitHub.
9+
workflow_dispatch:
10+
11+
# Allow this job to clone the repo and create a page deployment
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
jobs:
18+
build:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout your repository using git
22+
uses: actions/checkout@v4
23+
- name: Install, build, and upload your site
24+
uses: withastro/action@v3
25+
# with:
26+
# path: . # The root location of your Astro project inside the repository. (optional)
27+
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
28+
# package-manager: pnpm@latest # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
29+
30+
deploy:
31+
needs: build
32+
runs-on: ubuntu-latest
33+
environment:
34+
name: github-pages
35+
url: ${{ steps.deployment.outputs.page_url }}
36+
steps:
37+
- name: Deploy to GitHub Pages
38+
id: deployment
39+
uses: actions/deploy-pages@v4

astro.config.mjs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ import mdx from '@astrojs/mdx';
1414

1515
// https://astro.build/config
1616
export default defineConfig({
17+
site: 'https://alt-del-code.github.io',
1718
integrations: [
1819
react(),
19-
tailwind(),
20+
tailwind({
21+
// Ensure Tailwind processes all content
22+
applyBaseStyles: false,
23+
}),
2024
markdoc(),
2125
sitemap(),
2226
partytown(),
@@ -29,15 +33,18 @@ export default defineConfig({
2933
keystatic(),
3034
mdx(),
3135
],
32-
33-
site: 'https://krrishco.com',
36+
37+
build: {
38+
assets: '_astro',
39+
inlineStylesheets: 'auto'
40+
},
3441

3542
adapter: node({
3643
mode: 'standalone'
3744
}),
3845

39-
// New Astro 5.0 configurations
40-
prefetch: {
46+
// New Astro 5.0 configurations
47+
prefetch: {
4148
prefetchAll: true,
4249
defaultStrategy: 'hover'
4350
},

keystatic.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ export default config({
1313
"about": about,
1414
"fabrication": fabrication,
1515
"materials": materials,
16-
blog: blog,
16+
"blog": blog,
1717
},
1818
});

vercel.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"framework": "astro",
3+
"buildCommand": "npm run build",
4+
"outputDirectory": "dist",
5+
"cleanUrls": true,
6+
"github": {
7+
"silent": true
8+
}
9+
}

0 commit comments

Comments
 (0)