Compare commits

..

No commits in common. "155b2bc649b66da2ef7621cd4f9cd0bf27ca6640" and "d1aeac3db089de6a6178c0722f87999e2c5e5b30" have entirely different histories.

10 changed files with 891 additions and 696 deletions

View file

@ -18,37 +18,16 @@
# RUN bun run build
# FROM base AS release
# COPY --from=base /app/package.json /app/bun.lock ./
# COPY --from=install /temp/prod/node_modules node_modules
# COPY --from=build /usr/src/app/dist .
# EXPOSE 4321
# ENTRYPOINT [ "bun", "run", "start" ]
# ENTRYPOINT [ "bun", "run", "./server/entry.mjs" ]
FROM oven/bun:latest AS base
FROM oven/bun:latest
WORKDIR /app
FROM base AS deps
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
FROM base AS build
COPY --from=deps /app/node_modules node_modules
COPY . .
RUN bun install
RUN bun run build
FROM base AS release
COPY --from=deps /app/node_modules node_modules
COPY --from=build /app/dist ./dist
COPY package.json bun.lock ./
EXPOSE 4321
ENTRYPOINT [ "bun", "run", "start" ]
# ENTRYPOINT [ "sleep", "infinity" ]
# COPY . .
# RUN bun install
# RUN bun run build
# EXPOSE 4321
# ENTRYPOINT [ "bun", "run", "start" ]
ENTRYPOINT [ "bun", "run", "preview" ]

View file

@ -9,16 +9,18 @@ import { defineConfig } from "astro/config"
import robotsTxt from "astro-robots-txt"
import addClasses from "rehype-class-names"
import og from "astro-og";
import bun from "@hedystia/astro-bun";
// import remarkRehype from "remark-rehype"
import og from "astro-og";
import node from "@astrojs/node";
// https://astro.build/config
export default defineConfig({
adapter: bun(),
output: "server",
prefetch: true,
site: "https://lio.cat",
markdown: {
remarkRehype: {},
rehypePlugins: [
@ -43,4 +45,8 @@ export default defineConfig({
showLineNumbers: true,
},
}), mdx({}), robotsTxt(), og()],
adapter: node({
mode: "standalone",
}),
})

1498
bun.lock

File diff suppressed because it is too large Load diff

View file

@ -5,7 +5,7 @@
"tsx": true,
"tailwind": {
"config": "tailwind.config.mjs",
"css": "src/styles/global.css",
"css": "src/styles/tailwind.css",
"baseColor": "neutral",
"cssVariables": true,
"prefix": ""

View file

@ -1,13 +0,0 @@
services:
app:
build:
context: .
target: release
ports:
- "4321:4321"
environment:
NODE_ENV: production
HOST: 0.0.0.0
PORT: 4321
restart: unless-stopped

View file

@ -1,32 +1,32 @@
{
"name": "wrath",
"name": "astro-air",
"type": "module",
"version": "0.0.1",
"scripts": {
"dev": "astro dev --host 0.0.0.0",
"build": "astro check && astro build",
"check": "astro check",
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write .",
"start": "bun run ./dist/server/entry.mjs"
"format": "prettier --write ."
},
"dependencies": {
"@astrojs/check": "^0.9.5",
"@astrojs/mdx": "^4.3.11",
"@astrojs/node": "^9.5.1",
"@astrojs/react": "^4.4.2",
"@astrojs/rss": "^4.0.13",
"@astrojs/sitemap": "^3.6.0",
"@expressive-code/plugin-collapsible-sections": "^0.40.2",
"@expressive-code/plugin-line-numbers": "^0.41.3",
"@fontsource-variable/jetbrains-mono": "^5.2.8",
"@hedystia/astro-bun": "^0.3.2",
"@radix-ui/react-hover-card": "^1.1.15",
"@tailwindcss/vite": "^4.1.17",
"@types/react": "^19.2.6",
"@types/react-dom": "^19.2.3",
"@vercel/og": "^0.8.5",
"astro": "^5.15.9",
"astro-expressive-code": "^0.40.2",
"astro-google-analytics": "^1.0.3",
"astro-og": "^0.3.0",
"astro-og-canvas": "^0.7.2",
"astro-robots-txt": "^1.0.0",
@ -46,6 +46,7 @@
"tailwindcss": "^4.1.17",
"tailwindcss-animate": "^1.0.7",
"tw-animate-css": "^1.4.0",
"twikoo": "^1.6.44",
"typescript": "^5.9.3"
},
"devDependencies": {

View file

@ -1,10 +1,11 @@
---
// import { NoiseBackground } from "~/components/react/noise-background"
import { NoiseBackground } from "~/components/react/noise-background"
import { getLangFromUrl } from "~/i18n/utils"
import { GoogleAnalytics } from "astro-google-analytics"
import { en, de } from "~/config"
import { ClientRouter } from "astro:transitions"
import "~/styles/global.css"
import "~/styles/tailwind.css"
// import "~/styles/view-transition.css"
const lang = getLangFromUrl(Astro.url)
@ -15,6 +16,8 @@ const urls = {
general: `/images/general/ogImage.png`,
}
const isPost = post
const ogImageURL = new URL(post ? urls.postURL : urls.general, Astro.site).href
const permalink = new URL(Astro.url.pathname, Astro.site).href
const config = lang === "de" ? de : en

View file

@ -1,7 +1,7 @@
export const prerender = true
import { type CollectionEntry } from "astro:content"
import { getCollection, type CollectionEntry } from "astro:content"
import fs from "fs"
import { join } from "node:path"
import { join, resolve } from "node:path"
import { ImageResponse } from "@vercel/og"
import { getPostsByLocale } from "~/utils"
import type { ReactElement } from "react"

9
tailwind.config.mjs Normal file
View file

@ -0,0 +1,9 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ["./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}"],
darkMode: ["class"],
theme: {
extend: {},
},
plugins: [require("@tailwindcss/typography")],
}