Shopify / Shopify/shopify-app-template-node

Not able to use public folder for static file serving

Open
#1,163 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1k
Forks
434
PR merge metrics
No merged PRs in 30d

Description

I tried to create a public folder to serve static files but it is not working. The request to get the file is returning a 400 as status

Write a short description of the issue here ↓

Expected behavior

What do you think should happen?

Actual behavior

What actually happens?

Tip: include an error message (in a <details></details> tag) if your issue is related to an error

Steps to reproduce the problem

Reduced test case

The best way to get your bug fixed is to provide a reduced test case.

Specifications

  • Browser:
  • Device:
  • Operating System:

https://github.com/Shopify/shopify-app-template-node/issues/1163#tasklist-block-abbf4a45-186d-47eb-8cd7-c258e93221eb

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue does not name a file, entry point, test, or reduced test case. Start by locating the template's static-file serving configuration and reproduce the 400 response when requesting a file from a public folder. Done means the static file can be requested successfully and the behavior is covered by an appropriate test or reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.