mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-15 06:35:20 -07:00
Fix not properly trimming static part of path
This commit is contained in:
parent
63bae1dc6a
commit
991bdf4261
1 changed files with 5 additions and 5 deletions
|
|
@ -3,16 +3,16 @@ import axios from 'axios'
|
||||||
import 'dotenv/config'
|
import 'dotenv/config'
|
||||||
|
|
||||||
import {
|
import {
|
||||||
storkVersion,
|
// storkVersion,
|
||||||
storkExecutableName,
|
// storkExecutableName,
|
||||||
storkExecutablePath,
|
// storkExecutablePath,
|
||||||
storkTomlPath,
|
storkTomlPath,
|
||||||
} from '~/helpers/stork/config.js'
|
} from '~/helpers/stork/config.js'
|
||||||
|
|
||||||
export async function downloadStorkToml () {
|
export async function downloadStorkToml () {
|
||||||
const apiUrl = new URL( process.env.PUBLIC_API_DOMAIN )
|
const apiUrl = new URL( process.env.PUBLIC_API_DOMAIN )
|
||||||
|
|
||||||
apiUrl.pathname = storkTomlPath.replace('/static', '')
|
apiUrl.pathname = storkTomlPath.replace('static/', '')
|
||||||
|
|
||||||
const response = await axios({
|
const response = await axios({
|
||||||
method: "get",
|
method: "get",
|
||||||
|
|
@ -23,6 +23,6 @@ export async function downloadStorkToml () {
|
||||||
|
|
||||||
// Get toml file stats
|
// Get toml file stats
|
||||||
const stats = await fs.stat( storkTomlPath )
|
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)
|
// console.log('TOML Stats', stats)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue