Skip to content

Commit

Permalink
Merge pull request ubiquity-os#148 from gentlementlegen/fix/hono-ctx
Browse files Browse the repository at this point in the history
fix: replace process.env with ctx.env in server.ts
  • Loading branch information
gentlementlegen authored Oct 16, 2024
2 parents 39e22fd + d376750 commit be749c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sdk/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ export async function createPlugin<TConfig = unknown, TEnv = unknown, TSupported

let env: TEnv;
if (pluginOptions.envSchema) {
env = Value.Decode(pluginOptions.envSchema, process.env);
env = Value.Decode(pluginOptions.envSchema, ctx.env);
} else {
env = process.env as TEnv;
env = ctx.env as TEnv;
}

const context: Context<TConfig, TEnv, TSupportedEvents> = {
Expand Down

0 comments on commit be749c8

Please sign in to comment.