Enabling Fluid Compute broke my server
Worse, turning it off and redeploying did not fix the issue
. I am using webpack to copy binary files used for tokenizing llm queries from a dependency (node_module) to the server folder. Everything was working on the deployment earlier in the day and previous deployments.
If I had to guess, the binary is being launched from a different directory than previously... or the file structures have been changed. My expectation is that the cloud environment should not produce a different result than the local server; Especially after reverting the feature. Please advise on how to handle binary files, and restore previous functionality for non fluid-compute execution.
Error: ENOENT: no such file or directory, open '/var/task/.next/server/data/bpe/v3/vocab.bin
webpack: (config, { isServer }) => { if (isServer) { config.plugins.push( new CopyWebpackPlugin({ patterns: [ { from: path.resolve(__dirname, 'node_modules/mistral-tokenizer-ts/data/'), to: path.resolve(__dirname, '.next/server/data/'), } ], }) ); } return config; },