From d08a70d15ce1fed3ea56fdb79ce87afa1921dfa5 Mon Sep 17 00:00:00 2001 From: Ryan Ogden Date: Sun, 31 Mar 2024 09:26:43 -0400 Subject: [PATCH] Fix default tailwind config always showing in config viewer --- server/index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/server/index.js b/server/index.js index 0c12542..b8ec078 100644 --- a/server/index.js +++ b/server/index.js @@ -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