Drogbata
Drogbata
Explore posts from servers
CDCloudflare Developers
Created by Drogbata on 4/3/2024 in #workers-help
Deploy by push
thank you
3 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
thank you very much with help
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
then i got 1 issue with library and moved to cloudflare
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
no, i was using vercel for backend
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
everything worked even on this setup except env vars, so when i changed it to this it works now import app from '../app.js' export const config = { runtime: 'edge' } export default { fetch: app.fetch };
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
when i moved to Cloudflare from vercel i didnt make properly
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
My index.ts import { handle } from 'hono/vercel' import app from '../app.js' export const config = { runtime: 'edge' } export default { fetch: handle(app) };
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
No need i got it 😦 so stuipid
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
damn, nothing works. I will try to create minimal example and let you know. Thank you for your assistance!!
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
did you define secret also in this file?
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
is there requirement to do something on my cloudflare account?
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
ofc, hmm. what command you use to run server?
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
maybe i should try with normal Hono instance
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
do you use OpenAPIHono too?
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
No description
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
is this what you meant?
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
No description
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
import { OpenAPIHono, createRoute, z } from '@hono/zod-openapi' import type { Handler } from "hono" import { env } from "hono/adapter" const app = new OpenAPIHono() const route = createRoute({ method: 'get', path: '/test', responses: { 200: { content: { 'application/json': { schema: z.string(), }, }, description: 'Test', }, }, tags: ['test'] }) const handler:Handler = async (c) => { const { auth } = env(c) return c.json(Value is: ${auth}) } export default app.openapi(route, handler)
31 replies
CDCloudflare Developers
Created by Drogbata on 4/2/2024 in #general-help
env variables are empty - Hono
my code that worked before with hard coded values is crashing because of null/undefined so my guess is that its not working but i will check and let you know
31 replies