Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
scffs committed Dec 7, 2023
1 parent b61d611 commit 6d89690
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
7 changes: 2 additions & 5 deletions apps/api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import { handleErrors } from '@utils'
import Elysia from 'elysia'
import users from './routes/user/userRoutes'
import { handleErrors } from '@utils'

const app = new Elysia()
.use(users)
.listen(3000)
.onError(handleErrors)
const app = new Elysia().use(users).listen(3000).onError(handleErrors)

console.log(
`🦊 Elysia is running at http://${app.server?.hostname}:${app.server?.port}`
Expand Down
20 changes: 10 additions & 10 deletions apps/web/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ export default defineConfig({
terserOptions: {
compress: {
drop_console: true,
dead_code: true,
dead_code: true
},
toplevel: true,
keep_classnames: false,
keep_fnames: false,
safari10: false,
safari10: false
},
rollupOptions: {
logLevel: 'debug',
output: {
manualChunks: {
'@vkontakte/icons': ['@vkontakte/icons'],
},
},
},
'@vkontakte/icons': ['@vkontakte/icons']
}
}
}
},
// @ts-ignore unknown
plugins: [preact()],
Expand All @@ -36,8 +36,8 @@ export default defineConfig({
{ find: '@utils', replacement: path.resolve(__dirname, 'src/utils') },
{
find: '@components',
replacement: path.resolve(__dirname, 'src/components'),
},
],
},
replacement: path.resolve(__dirname, 'src/components')
}
]
}
})
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"dev:startDB": "cd apps/api && db:start",
"lint": "biome lint . --apply",
"format": "biome format . --write",
"checkAll": "biome check .",
"checkAll": "biome check . --apply",
"build:web": "cd apps/web && bun run build",
"build:api": "cd apps/api && bun run build",
"build:api:types": "cd apps/api && bun run build:types",
Expand Down

0 comments on commit 6d89690

Please sign in to comment.