From 991bdf426199c2b5f1faf57bdf9e6fe86a7f0c9d Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Tue, 10 May 2022 12:36:43 -0500 Subject: [PATCH] Fix not properly trimming static part of path --- helpers/api/static.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/helpers/api/static.js b/helpers/api/static.js index 86a3734..91b2b29 100644 --- a/helpers/api/static.js +++ b/helpers/api/static.js @@ -3,16 +3,16 @@ import axios from 'axios' import 'dotenv/config' import { - storkVersion, - storkExecutableName, - storkExecutablePath, + // storkVersion, + // storkExecutableName, + // storkExecutablePath, storkTomlPath, } from '~/helpers/stork/config.js' export async function downloadStorkToml () { const apiUrl = new URL( process.env.PUBLIC_API_DOMAIN ) - apiUrl.pathname = storkTomlPath.replace('/static', '') + apiUrl.pathname = storkTomlPath.replace('static/', '') const response = await axios({ method: "get", @@ -23,6 +23,6 @@ export async function downloadStorkToml () { // Get toml file stats const stats = await fs.stat( storkTomlPath ) - console.log('TOML is file', storkTomlPath, stats.isFile()) + console.log( stats.isFile() ? '✅' : '❌', 'TOML is file', storkTomlPath ) // console.log('TOML Stats', stats) }