Skip to content

Commit

Permalink
test build
Browse files Browse the repository at this point in the history
  • Loading branch information
zalenskiSofteq committed Dec 13, 2024
1 parent c6fa9a5 commit a729494
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions scripts/downloadBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,16 @@ import * as dotenv from 'dotenv'
import * as upath from 'upath'
import { parse as parseUrl } from 'url'

const dirname = __dirname?.startsWith('D:')
? upath.normalize(__dirname).replace('D:', '/d')
: __dirname

// upath.normalize(__dirname)

dotenv.config({
path: [
upath.join(dirname, '..', '.env'),
path.join(__dirname, '..', '.env'),
]
})
const target = process.argv[2];
const cdnPath = process.env.RI_CDN_PATH
const backendPath = upath.join(dirname, '..', 'dist', 'redis-backend')
const tutorialsPath = upath.join(backendPath, 'dist-minified', 'defaults', 'tutorials')
const backendPath = path.join(__dirname, '..', 'dist', 'redis-backend')
const tutorialsPath = path.join(backendPath, 'dist-minified', 'defaults', 'tutorials')

const downloadBackend = async () => {
if (fs.existsSync(backendPath)) {
Expand Down

0 comments on commit a729494

Please sign in to comment.