Hi, @java1cprog. This is not a question about Netlify. You are asking a question about your own code and we will not debug the code you write.
Again, debugging the code you write isn’t covered in the scope of our support.
This is your deployed HTML:
<!doctype html><html lang="en"><head><meta charset="utf-8"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="mobile-web-app-capable" content="yes"/><title>Strapi Admin</title><script defer="defer" src="/admin/runtime~main.78dfcead.js"></script><script defer="defer" src="/admin/main.ba3b8f64.js"></script></head><body><div style="min-height:100%" id="app"></div></body></html>
The issue is in these two script tags:
<script defer="defer" src="/admin/runtime~main.78dfcead.js"></script>
<script defer="defer" src="/admin/main.ba3b8f64.js"></script>
The issue is that /admin/
is added to both src
attributes above. The correct tags are these:
<script defer="defer" src="/runtime~main.78dfcead.js"></script>
<script defer="defer" src="/main.ba3b8f64.js"></script>
I know with 100% certainty that Netlify isn’t causing this. I know this because your repo is public and I can test the build command outside of Netlify. What I find is this:
- Even when Netlify is not used the HTML generated is incorrect.
I didn’t use Netlify’s build system. I didn’t deploy to Netlify. I just ran the build command on a VM and I get the same output - with zero Netlify code used. This proves that the bug is in your repo’s code. That isn’t anything Netlify will fix for you. You need to fix that code.
About this:
This is your code, not Netlify’s code. You need to answer that question above because it is about your code.
About this:
We are telling you something useful. We are telling you that this is your job to fix and that you are asking the wrong people this question. We are not here to debug your code. We are here to provide technical support for Netlify and our services. Your question isn’t about Netlify. Your question is about your code.
You are deploying that code to Netlify successfully. The code you deployed has a bug in it and Netlify doesn’t cause that bug.
All questions about how to deploy are answered. The only unanswered question is: “How does one remove the /admin
string from the <script>
tags?”. That is never Netlify’s responsibility to answer as we didn’t write the code with that bug.