Skip to content

Commit

Permalink
Fix default tailwind config always showing in config viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
rogden committed Mar 31, 2024
1 parent bc9a737 commit d08a70d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ function createServer ({
shouldOpen,
routerPrefix = ''
}) {
console.log('CONFIG PROVIDER: ', tailwindConfigProvider)
const app = new Koa()

const router = new Router({ prefix: routerPrefix })

router.get('/config.json', (ctx) => {
ctx.body = resolveConfig(tailwindConfigProvider())
router.get('/config.json', async (ctx) => {
const config = await tailwindConfigProvider()
ctx.body = resolveConfig(config)
})

app
Expand Down

0 comments on commit d08a70d

Please sign in to comment.