diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 16:18:57 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 16:18:57 +0800 |
commit | 7dc3cc30aaeb68b9266fffd65c3d39a277197027 (patch) | |
tree | b96a89d1443aef7153abc1a2f6a2ab8b908c9be2 | |
parent | a060d20148973bb2ff67ca65e6cffa3639d7e63d (diff) |
Pass WASM (& JS) build dir as JavaScript directory
-rw-r--r-- | main.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -11,8 +11,11 @@ int main(int argc, char *argv[]) static const char *index_rel = "/frontend/index.html"; char index[app_dir_len + strlen(index_rel) + 1]; sprintf(index, "%s%s", APP_DIR, index_rel); + static const char *js_dir_rel = "/frontend/build"; + char js_dir[app_dir_len + strlen(js_dir_rel) + 1]; + sprintf(js_dir, "%s%s", APP_DIR, js_dir_rel); shopify_app(API_KEY, API_SECRET_KEY, APP_URL, "/auth", APP_ID, scopes, - index, (struct shopify_api[]){ + index, js_dir, (struct shopify_api[]){ { "/products", "GET", |