Finally!!!! I somehow did it. I deployed it and it's live.
I'm talking about the locale handling, btw. I had so many problems. One of them:
The params prop can be a Promise when using dynamic routes – I tried to use params.locale directly and got an error because I was trying to access a property on a Promise, not on the actual object.
You need to await the params Promise to get the real object.
Also, ESLint and TypeScript really don’t like any, as I found out.
Yeah, but now it's deployed, and you can switch the language from English to German and back. 🙌
Also, I bought a new domain, so I don't have that weird Vercel stuff in my URL anymore. It's called pdf-edit.app.
Why PDF edit? Isn’t it a compressor?
Yes – at least for now. I was thinking about the web app and its usefulness, and I came to the conclusion that compressing with pdf-lib is pretty... not good.
But some other features – like editing PDFs, slicing them up, or merging them – are actually useful. And if everything works out like I planned, it all runs only in the frontend.
Top comments (0)