safeParse not working server sider with z.union() : Error: Attempted to call indexOf() from the server but indexOf is on the client
I am working on a next js app with the directory page system.
I have a folder called [[…options]], which enable to get url segments in the url, more details about that here