Deployment to Azure Blob storage problem

Hi, new user to Three.js, I got one of the demo source, it works fine in Vite. Then I build a dist, and uploaded to a Azure Blob Storage, which can host html files. However, I’m getting an error with file not found

image

This error is not saying “file not found”

There is a Problem with your autification. You are nor sending the right user/pw/tocken to access the ressoures.

There is no authentication/pw/token needed. I’m able to host unity webgl stuff fine. It seems to be a problem with vite, I’ve tried with vite sample by itself, and it has the same issue.

The HyperText Transfer Protocol (HTTP) 401 Unauthorized response status code indicates that the client request has not been completed because it lacks valid authentication credentials for the requested resource .

I really doubt it has anything to do with vite.
.
Maybe you have something wrong with your url path.
Wrong storage name, or maybe container.
You might also need to edit the base to in vite config to relative

export default defineConfig({
  base: "./",
  // your other configuration...
});

What vite sample?

It’s the default vanilla javascript sample vite created. i deployed it in netifly , it works fine without any changes, so there must be something different in azure blob storage.

Fixed. Had to update azure blob storage to v2 and use static website