triplex
triplex copied to clipboard
Next.js APIs (Link/Router/RSC) don't work with Triplex
- Images via imports aren't the same, e.g:
Results in a string in Triplex, but an object in Next.js.import perlin from "@/shaders/material-steam/perlin.jpg" - Router links / context hooks throw
- Process.env throws when loading anything from Next.js
https://github.com/storybookjs/vite-plugin-storybook-nextjs could be an option to resolve this!
https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-rsc for implementing RSC