Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/ass/commit/e8db8b2275626b8889d969749a21876d87f9df1c
You should set ROOT_URL correctly, otherwise the web may not work correctly.
3 changed files with
24 additions and
1 deletions
@ -1,6 +1,8 @@
import express , { Request , Response , NextFunction , RequestHandler , json as BodyParserJson } from 'express' ;
import fs from 'fs-extra' ;
import { path , isProd } from '@tycrek/joint' ;
import { epcss } from '@tycrek/express-postcss' ;
import tailwindcss from 'tailwindcss' ;
import { log } from './log' ;
import { ServerConfiguration } from 'ass' ;
@ -63,6 +65,18 @@ async function main() {
app . use ( BodyParserJson ( ) ) ;
app . use ( assMetaMiddleware ( serverConfig . port , serverConfig . proxied ) ) ;
// CSS
app . use ( '/.css' , epcss ( {
cssPath : path.join ( 'tailwind2.css' ) ,
plugins : [
tailwindcss ,
( await import ( 'autoprefixer' ) ) . default ( ) ,
( await import ( 'cssnano' ) ) . default ( ) ,
( await import ( '@tinycreek/postcss-font-magician' ) ) . default ( ) ,
] ,
warn : ( warning : Error ) = > log . warn ( 'PostCSS' , warning . toString ( ) )
} ) ) ;
app . get ( '/.ass.host' , ( req , res ) = > res . send ( req . ass . host ) ) ;
// Routing
@ -40,7 +40,7 @@ module.exports = {
plugins : [
//require('tailwindcss-textshadow')
] ,
content : [ './views /**/*.pug'] ,
content : [ './views 2 /**/*.pug'] ,
theme : {
extend : {
fontFamily : {
@ -0,0 +1,9 @@
@ tailwind base ;
@ tailwind components ;
@ tailwind utilities ;
@ layer base { }
@ layer components { }
@ layer utilities { }