Skip to content

Commit

Permalink
fix: use import from server
Browse files Browse the repository at this point in the history
  • Loading branch information
sumitkolhe committed Mar 16, 2024
1 parent d0537a4 commit 8973728
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: CI
on: [push, pull_request]
jobs:
CI:
relase:
name: Test and Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout Code
Expand Down
7 changes: 2 additions & 5 deletions api/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
import { handle } from '@hono/node-server/vercel'
import { AlbumController, ArtistController, SearchController, SongController } from '../dist/modules/index.js'
import { App } from '../dist/app.js'
import app from '../dist/server.js'

const app = new App([new SongController(), new AlbumController(), new ArtistController(), new SearchController()])

export default handle(app.getApp())
export default handle(app)

0 comments on commit 8973728

Please sign in to comment.