Linking fixed!

Published

So I figured it out, it was of course GPT related. GPT originally instructed me to use /var/www/mysite as the location for everything, but then when configuring ngix, it changed it without mentioning it to /var/www/mysite.com (Not actual path, just an example path here folks). This caused it to look in the wrong place, but even after fixing this I found it still didn’t work, but it worked locally using npm run dev or npm run preview after building it worked fine!

I checked around in the config files and found that it was using the wrong try-files entry for Ngix, it was using location / { try_files $uri /index.html; } which was really close, but it needed to be location / { try_files $uri $uri/ /index.html; } So it needed $uri/ added in.. why? Couldn’t tell you!

Also switching to .mdx files for the posts from .md and trying to learn the markdown syntax, hopefully it worked in this post!

Asking GPT was kind of useless on how to format in a .mdx as it kept bleeding into it’s own formatting making it impossible to get something I could copy and paste. Even after I tried to get it to switch to the canvas so the formatting in the post wouldn’t break it’s own formatting it just reposted the same broken formatting.

GPT formatting failure

Next up, Darkmode! (It’s already working but this was a whole other ordeal and I’m not sure why it’s working at all…yet!)