gjbae1212 / hit-counter

:rocket: Easy way to know how many visitors are viewing your Github, Website, Notion. :tada:
https://hits.seeyoufarm.com
GNU General Public License v3.0
1.05k stars 87 forks source link

How to confirm graph on local #12

Closed jungdu closed 4 years ago

jungdu commented 4 years ago

I'd like to confirm the graph for changing styles on the graph.

CORS related error occurs when attempting to show the graph.

Access to fetch at 'https://hits.seeyoufarm.com/api/count/graph/dailyhits.svg?url=https://github.com/gjbae1212/hit-counter' from origin 'http://localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.
WebSocket connection to 'wss://hits.seeyoufarm.com/ws' failed: Error during WebSocket handshake: Unexpected response code: 403
jungdu commented 4 years ago

I changed the environment variable in the file build_env.sh

export PHASE=local
export REDIS_ADDRS=localhost:6379