Hello, I'm trying to develop a compose multiplatfo...
# multiplatform
n
Hello, I'm trying to develop a compose multiplatform project targeting Android and Web I am not a web developer so I am discovering the environnement and meet some issue 1. I am using "Decompose" for the navigation. I have issues with the browser navigation. I cannot open a page from the url. Launching the project from the ide, no issue. It open localhost:8080/, redirect to /articles and from there i can navigate to /articles/{articles}, but if I refresh a page like /articles, I have a 404 error (cannot find GET /articles) I added a devServerConfig.js in the folder "webpack.config.d" at the root of "wasmJsMain" but it doesn't work. The file doesn't seem to be used. Even changing the port in this file is not applied
Copy code
config.devServer = {
    historyApiFallback: true,
    // ... other devServer configurations ...
};
2. How can I add a secured key that can be used by the wasm project ? For Android I use "local.properties", but I don't find a way to use it in the web part...
n
unfortunately it doesn't solve issue. I changed the port in the file "devServerConfig.js" but it doesn't work.
Copy code
config.devServer = {
    ...config.devServer, // Preserve existing settings
    historyApiFallback: true,
    port: 9000, // Change the port
    // Add other custom devServer options
  };
I guess the file is not used by webpack. If it could be used correctly maybe I could even have a solution for my second issue.