D
Deno

help

How can I access req object inside a render() function from fresh plugin?

TTavanogui1/8/2024
Is it possible?
Rrazzi1/8/2024
I'd get what you need from the request and put it in app state, then pass the relevant app state thru to the render Could you add some more information like the fresh plugin so we can get a better idea of the use case?
Llucis1/8/2024
We're using the plugin as a gateway to attach the string translations to the web page, so that it can be used by both backend and frontend code A better i18n approach would be cool as well, haven't looked into that for a while
TTavanogui1/8/2024
yes, we would like to listen popular approachs for i18n but, in general line we are doing something like:
TTavanogui1/8/2024
No description
Mmarvinh.1/9/2024
I think we're missing that in our API. I feel like we should change it so that the ctx object should match other areas of the plugin API Filed https://github.com/denoland/fresh/issues/2220 so that we don't forget about it. (It's difficult for me to keep track of bug reports or feature requests in discord compared to github)
TTavanogui1/9/2024
nice! started something here: https://github.com/denoland/fresh/pull/2224

Looking for more? Join the community!

Recommended Posts
Deno Deploy KV: Gateway TimeoutI been using KV on this project since closed beta and it worked great, but since yesterday **Write OSlow loading time on localhostAs discussed in https://discord.com/channels/684898665143206084/991511118524715139/11935856237103104How to set env variable for preview branch?I'm getting just errors that they are missingPrisma error when trying to push/migrate db```bash PS C:\Users\adubo\Desktop\freshchat> deno task push Task push deno run -A npm:prisma@latest Does the deno-astro-adapter will be updated to use astro 4? https://github.com/denoland/deno-astro-aDoes the deno-astro-adapter will be updated to use astro 4? https://github.com/denoland/deno-astro-a(In IntelliJ) Deno: Failed to load the import map at <absolute_path> (...)I just started working with Deno today, and I'm liking it quite a bit so far 🙂 rn I'm running into serde_v8::from_v8 for BigInts unsupported through `deserialize_any`Deserializing BigInts is currently not supported unless a specific type is requested (e.g. it's unsuimport plotly.js : invalid or unexpected token ?`import Plotly from "npm:plotly.js-dist";` yields Stack trace: SyntaxError: Invalid or unexpected tDeno deploy: "Error The deployment failed: ISOLATE_INTERNAL_FAILURE"what's this error? ```js Cloning repository (100%) Project linked successfully. Building first deploModule documentation preview in developmentI am trying to improve development experience when documenting Deno modules. What I would like to acFresh project creation hangingUpgraded deno to 1.39.2 this morning and tried to create a new fresh project. CLI just hangs after eRedirect which deno deploy instance is used?My scenario is that I have one websocket connection on east4 and one on east5 and they need to be abstd/http/setCookie doesn't work?It seems to only support single cookies: ```ts import * as cookies from "https://deno.land/std@0.21Abort signals and node compatibilityDeno and Node's `AbortSignal` types are not compatible. I have verified that I can use a deno Abortdeployctl error: TypeError: request or response body errorHey, I'm getting an error when trying to deploy to a project error: TypeError: request or response bdrizzle orm for deno and sqlite?does drizzle orm work with sqlite and deno?deno queues on deployDoes anyone have a simple example if deno queues + routing that works on demo deploycompile to target, 'unzip' not found.I am on linux ubuntu 22 I downloaded, uninstalled reinstalled, written to path unzip. however no matRecommendations for interacting with Excel sheets (.xlsx) and GraphQL?I want to use Deno in production. Specifically, I'm looking into building a script that reads a `.xlTrouble with Deno importsWhat's wrong with my import? The link is valid and I cached it. (https://deno.land/x/deno_dom@v0.1.