fix: tailwind setup for real now

This commit is contained in:
Felix Roos 2025-01-26 14:58:23 +01:00
parent aa1efcc7ea
commit f4b8753171
No known key found for this signature in database
4 changed files with 183 additions and 13 deletions

View file

@ -1,6 +1,7 @@
import { defineConfig } from 'astro/config';
import react from '@astrojs/react';
import mdx from '@astrojs/mdx';
import tailwind from '@astrojs/tailwind';
import remarkToc from 'remark-toc';
import rehypeSlug from 'rehype-slug';

View file

@ -65,7 +65,7 @@
"rehype-slug": "^6.0.0",
"rehype-urls": "^1.2.0",
"remark-toc": "^9.0.0",
"tailwindcss": "^4.0.0",
"tailwindcss": "^3.4.17",
"worker-timers": "^8.0.13"
},
"devDependencies": {

View file

@ -1,8 +1,8 @@
---
// @ts-ignore
import { pwaInfo } from 'virtual:pwa-info';
import '../styles/index.css';
const { BASE_URL } = import.meta.env;
const baseNoTrailing = BASE_URL.endsWith('/') ? BASE_URL.slice(0, -1) : BASE_URL;
---