Brandon Roberts

Results 206 comments of Brandon Roberts
trafficstars

We discussed this previously and most sites building with Analog would prerender the root URL unless using something like tRPC https://analogjs.org/docs/features/server/server-side-rendering#prerendering-routes

@jdgamble555 we're missing the CSRF/cache part, but this is also what the `injectLoad` with `.page.ts` and `.server.ts` files do today. 1/2. "load" resolver for the route - https://github.com/analogjs/analog/blob/beta/packages/router/src/lib/route-config.ts#L32 - This...

You can use a rollup plugin for this https://www.npmjs.com/package/rollup-plugin-typescript-paths installing this as a dev dependency, importing the typescriptPaths plugin, and configuring as: ```ts analog({ nitro: { rollupConfig: { plugins: [typescriptPaths({...

@AbdallahR99 try with the latest release. We resolved some issues with Windows specifically

Ran into this also. Got a fix coming soon

Thanks @osnoser1. What's your proposed solution? We could inject the same thing into the `index.html` file using a Vite plugin if SSR is enabled.

I think adding defaults to the `ignore` configuration in Nitro would be ideal and commonly expected. A `/spec` folder should still be recognized, but any `.spec.ts` files within that folder...

Interesting find @osnoser1! If this works when deployed also, we could probably provide this in the object with `req` and `res` as `baseUrl`. This could be an opportunity to use...

Are these hooks the only extension points?

Closing this as we're moving content rendering to build time https://github.com/analogjs/analog/pull/1174