Skip to content

Commit

Permalink
use configSerivce
Browse files Browse the repository at this point in the history
  • Loading branch information
mathysth committed Mar 25, 2024
1 parent df2e691 commit cb13b42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sample/hono-hello-world/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { IocContainer, type LoggerService, defineConfigAndBootstrapApp } from '@cosmosjs/core';
import { ConfigService } from '@cosmosjs/core';
import type { ConfigService } from '@cosmosjs/core';
import { serve } from 'bun';
import dotenv from 'dotenv';
dotenv.config();
Expand All @@ -12,7 +12,7 @@ const boostrapApp = async () => {
const config = await defineConfigAndBootstrapApp((config: ConfigService) => ({
adapters: {
server: {
port: 3005,
port: config.get<number>('PORT'),
provider: () => import('@cosmosjs/hono-openapi'),
},
},
Expand Down

0 comments on commit cb13b42

Please sign in to comment.