Skip to content

Commit

Permalink
Use redis host from runtime
Browse files Browse the repository at this point in the history
  • Loading branch information
GDWR committed Jan 21, 2024
1 parent 5b10c75 commit 1933275
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/routes/url/[id].ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Redis from 'ioredis';

const redis = new Redis();
const runtimeConfig = useRuntimeConfig();
const redis = new Redis({ host: runtimeConfig.redisHost });


export default defineEventHandler(async (event) => {
Expand Down

0 comments on commit 1933275

Please sign in to comment.