-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(docs): update Docker script and update Astro dependencies
- Loading branch information
Showing
7 changed files
with
47 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.DS_Store | ||
node_modules | ||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"recommendations": [ | ||
"codybrom.gpt-context-generator", | ||
"DavidAnson.vscode-markdownlint", | ||
"streetsidesoftware.code-spell-checker", | ||
"vknabel.vscode-apple-swift-format", | ||
"astro-build.astro-vscode" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
services: | ||
jekyll: | ||
image: jekyll/jekyll:4.2.0 | ||
command: jekyll serve --force_polling --livereload | ||
astro: | ||
build: | ||
context: ./docs | ||
dockerfile: Dockerfile | ||
ports: | ||
- "4000:4000" | ||
- "35729:35729" | ||
- "4321:4321" | ||
volumes: | ||
- "./docs:/srv/jekyll" | ||
- "./docs:/app" | ||
- "/app/node_modules" | ||
environment: | ||
- NODE_ENV=development | ||
- HOST=0.0.0.0 | ||
- PORT=4321 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM node:lts AS base | ||
WORKDIR /app | ||
|
||
# Copy package files | ||
COPY package.json package-lock.json ./ | ||
|
||
# Development dependencies installation for dev server | ||
RUN npm install | ||
|
||
# Copy source | ||
COPY . . | ||
|
||
# Development command | ||
CMD ["npm", "run", "dev", "--", "--host"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,11 @@ | ||
// @ts-check | ||
import { defineConfig } from "astro/config"; | ||
import tailwind from "@astrojs/tailwind"; | ||
|
||
import playformCompress from "@playform/compress"; | ||
|
||
// https://astro.build/config | ||
export default defineConfig({ | ||
integrations: [tailwind(), playformCompress()], | ||
site: "https://blankie.rest", | ||
server: { | ||
headers: { | ||
// Set cache-control headers for all static assets | ||
"/*.{js,css,jpg,jpeg,png,gif,ico,svg,webp,mp4}": | ||
"Cache-Control: public, max-age=31536000, immutable", // 1 year cache | ||
// Specific headers for HTML files | ||
"/*.html": "Cache-Control: public, max-age=3600", // 1 hour cache | ||
}, | ||
}, | ||
output: "static", | ||
}); |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters