Getting 307 for css on Vercel
Answered
German Spitz posted this in #help-forum
German SpitzOP
I can see the css file being built and when I build it locally it is there with correct content, however on Vercel it gives 307 redirecting to /
Answered by Asian black bear
so, it is kind of counterintuitive and inconvenient, but your redirects from those actually apply to the bundle files too, which would be a logical source of the error presented
5 Replies
Asian black bear
@German Spitz Do you have any middleware in the app, or redirects setup in the next or vercel config files?
German SpitzOP
@Asian black bear in fact I do
Let me check that
Asian black bear
so, it is kind of counterintuitive and inconvenient, but your redirects from those actually apply to the bundle files too, which would be a logical source of the error presented
Answer
German SpitzOP
yep, that was the cause of this, thanks a lot for help!