Model texture lost when upload to Azure Static Web Apps, why?

LemonNeko 1 Reputation point
2022-04-14T09:13:22.21+00:00

I'm using GitHub Actions to build and deploy our static web application, and there is a 22M 3D model that becomes 8M after deployment, and the textures are missing, I don't know why.
After the application is built, the size of the model is still 22M. I don't know what happened during the upload process.
Workflow jobs output:
193045-image.png
Network pannel in chrome devtools
193094-image.png
Here is the model in normal state:
193112-image.png
After deploy:
193103-image.png

Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
851 questions
{count} votes

1 answer

Sort by: Most helpful
  1. LemonNeko 1 Reputation point
    2022-04-19T04:29:51.947+00:00

    Found the reason, I put the model separately in a static web application, when I configure a custom domain name, the model is normal. When I turned on enterprise grade edge and rebuilt it once, the model was lost
    I plan to use Azure Blob as the CDN, but why the model is lost when the enterprise grade edge is turned on, I don't know

    0 comments No comments