Reaction: The public folder is not accessible from the url

Created on 5 Jun 2020  路  2Comments  路  Source: reactioncommerce/reaction

const api = new ReactionAPICore({
  serveStaticPaths: ["public"],
  version: packageJson.version
});

Url : http://localhost:3000/public/resources/avatar.gif

bug needs triage

Most helpful comment

Omit "public" from the web path like this:

http://localhost:3000/resources/avatar.gif

"public" is a directory on the filesystem but it represents the root ("/") of the web app and is not included in web paths.

All 2 comments

Omit "public" from the web path like this:

http://localhost:3000/resources/avatar.gif

"public" is a directory on the filesystem but it represents the root ("/") of the web app and is not included in web paths.

@focusaurus Thanks is working but after i added this line in docker-compose

volumes:
      # Core
      - ./src/core/ReactionApiCore.js:/usr/local/src/app/node_modules/api-core/src/ReactionAPICore.js
Was this page helpful?
0 / 5 - 0 ratings

Related issues

ticean picture ticean  路  4Comments

Eduard-Hasa picture Eduard-Hasa  路  4Comments

spencern picture spencern  路  3Comments

coooolers picture coooolers  路  4Comments

mikemurray picture mikemurray  路  4Comments