Andrei Sinitsa
Andrei Sinitsa
Sorry, after a quick search i found it https://github.com/cloudflare/wrangler2/issues/421 And finally - https://github.com/aiji42/remix-emotion-on-cloudflare#conform-to-emotion ... Will try to do it... still looking for a working example.....
I have patched as described.... then, i fixed build import alias from 'esbuild-plugin-alias' ..... plugins: [ alias({ 'through': '/Users/havok/Work/lawsvc/packages/ccremix/node_modules/no-op/index.js', 'fs': '/Users/havok/Work/lawsvc/packages/ccremix/node_modules/no-op/index.js', 'path': '/Users/havok/Work/lawsvc/packages/ccremix/node_modules/no-op/index.js', 'os': '/Users/havok/Work/lawsvc/packages/ccremix/node_modules/no-op/index.js', 'html-tokenize': '/Users/havok/Work/lawsvc/packages/ccremix/node_modules/no-op/index.js', 'multipipe': '/Users/havok/Work/lawsvc/packages/ccremix/node_modules/no-op/index.js', '@emotion/react':...
it's ridiculous now .... i found these lines... first - process.env.DOTENV_CONFIG_ENCODING , process.env.DOTENV_CONFIG_PATH i fixed it define: { 'process.env.NODE_ENV': `"${mode}"`, 'process.env.VERSION': `"${version}"`, 'process.env.DOTENV_CONFIG_ENCODING': `"${dotenv_encoding}"`, 'process.env.DOTENV_CONFIG_PATH': `"${dotenv_path}"`, 'process.env.DOTENV_CONFIG_DEBUG': `"${dotenv_debug}"`, }, but...
> Post methods dont work? Just in example, route with withDurable - is 'get' - just change it to 'all' ;) router .**all**('*', withDurables())
i have tried to save original Durable Namespace in the state for later using for save id to string and persist for faster load - but seems like it's wrong...