Issue Summary
- Explain roughly what’s wrong
I have two local installations of my Ghost site, one on a Macbook and another on my Windows PC. On the Mac everything seems to work fine with loading .json file as an asset within the theme folder (assets/json/file.json). The JSON file is correctly loaded and used in the live production version of my site as well.
It seems that on a local install on Windows, the theme doesn’t seem to be able to access .json files which i have stored in the assets/json/ folder. Other filetypes such as .txt, .js etc are loading correctly and can be accessed within the browser as http://localhost:2368/assets/test.txt
The same bug seems to have been resolved in this forum post below but now it seems to be back:
I’ve tried putting the .json file in themename/files/file.json, but it doesn’t seem to resolve this issue this time.
- What did you expect to happen?
I expect the same behaviour as on Mac, so that I can keep developing my theme no matter which device I use.
Setup information
Ghost Version
Share which version of Ghost you’re using.
On Mac i had initially Ghost-CLI 1.26.0 and Ghost 5.87.1, I have updated it to the latest versions (CLI 1.27.0 and Ghost 5.110.1) and verified that it still works correctly there.
On Windows i have both tried the CLI version 1.26 and 1.27 and Ghost Versions 5.87.1 and 5.110.1 but none of these seem to work for this bug.
Node.js Version
If self-hosting - share which version of Node.js you’re using.
Tried Node v20 and v18.
How did you install Ghost?
Provide some details about your install of Ghost if you are self-hosting.
Installed through npm
Provide details of your host & operating system
Include further details about your hosting and OS.
Mac M1 Max on Sequoia 15.1.1
Windows 11 Version 10.0.26100 Build 26100
Browser & OS version
Include if reporting frontend bugs.
Tested in Brave and Edge with same error on Windows.
Tested in Brave and Safari with success on Mac
Relevant log / error output
Copy and paste any relevant log output. Use backticks to format this into code.
GET http://localhost:2368/assets/json/nr_array.json/?v=bb207aabe8 404 (Not Found)