diff --git a/.github/workflows/int_poweron-nyla-int.yml b/.github/workflows/int_poweron-nyla-int.yml index 756e8cb..cc3e3e2 100644 --- a/.github/workflows/int_poweron-nyla-int.yml +++ b/.github/workflows/int_poweron-nyla-int.yml @@ -25,7 +25,7 @@ jobs: npm run build --if-present - name: Zip artifact for deployment - run: zip release.zip ./* -r + run: zip release.zip ./* -r -x "node_modules/*" ".git/*" "*.md" ".github/*" - name: Upload artifact for deployment job uses: actions/upload-artifact@v4 diff --git a/server.js b/server.js index bd5984e..4943d52 100644 --- a/server.js +++ b/server.js @@ -1,5 +1,10 @@ -const express = require('express'); -const path = require('path'); +import express from 'express'; +import path from 'path'; +import { fileURLToPath } from 'url'; + +const __filename = fileURLToPath(import.meta.url); +const __dirname = path.dirname(__filename); + const app = express(); // Serve static files from the dist directory