fix: Tailwind invalid config
All checks were successful
Build, check & Test / run (push) Successful in 6m54s
All checks were successful
Build, check & Test / run (push) Successful in 6m54s
Signed-off-by: Avior <github@avior.me>
This commit is contained in:
parent
7f53a6473e
commit
f1d535073e
@ -1,23 +0,0 @@
|
|||||||
import type { APIRoute } from 'astro'
|
|
||||||
import ResponseBuilder from 'libs/ResponseBuilder'
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Plausible proxy
|
|
||||||
*/
|
|
||||||
export const POST: APIRoute = async ({ request, clientAddress }) => {
|
|
||||||
// const body = await request.json()
|
|
||||||
// console.log(body, clientAddress)
|
|
||||||
const res = await fetch('https://plausible.io/api/event', {
|
|
||||||
method: 'POST',
|
|
||||||
headers: {
|
|
||||||
'User-Agent': request.headers.get('User-Agent') as string,
|
|
||||||
'X-Forwarded-For': clientAddress,
|
|
||||||
'Content-Type': 'application/json'
|
|
||||||
},
|
|
||||||
body: await request.text()
|
|
||||||
})
|
|
||||||
return new ResponseBuilder()
|
|
||||||
.status(res.status)
|
|
||||||
.body(await res.text())
|
|
||||||
.build()
|
|
||||||
}
|
|
@ -5,16 +5,13 @@ const colors = require('tailwindcss/colors')
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
|
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
|
||||||
theme: {
|
theme: {
|
||||||
fontFamily: {
|
|
||||||
fontFamily: {
|
|
||||||
// add your default font below
|
|
||||||
sans: ["Font Name", ...defaultTheme.fontFamily.sans],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
extend: {
|
extend: {
|
||||||
colors: {
|
colors: {
|
||||||
primary: colors.amber // primary color used by the projet, easily swappable
|
primary: colors.amber // primary color used by the projet, easily swappable
|
||||||
},
|
},
|
||||||
|
fontFamily: {
|
||||||
|
'sans': ['Font Name', ...defaultTheme.fontFamily.sans]
|
||||||
|
},
|
||||||
container: {
|
container: {
|
||||||
center: true, // default to center the container
|
center: true, // default to center the container
|
||||||
padding: {
|
padding: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user