Skip to content

Commit

Permalink
Merge pull request #95 from calimania/feat/fix-deploy-2
Browse files Browse the repository at this point in the history
Trying deployment fixes
  • Loading branch information
dvidsilva authored Feb 8, 2025
2 parents b139f7f + 995798f commit 16a10f6
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: dist
name: github-pages-${{ github.run_id }}
path: ./dist
retention-days: 1
deploy:
needs: build
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ pnpm-debug.log*
# environment variables
.env
.env.production
.env.local

# macOS-specific files
.DS_Store
Expand Down
4 changes: 2 additions & 2 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { markketplace } from "./src/config";
* @type {import('astro/types').RuntimeConfig}
*/
export default defineConfig({
site: markketplace.url,
site: markketplace?.url,
integrations: [
tailwind({
applyBaseStyles: true,
Expand Down Expand Up @@ -41,5 +41,5 @@ export default defineConfig({
},
},
scopedStyleStrategy: "where",
outDir: "dist",
outDir: "./dist",
});
7 changes: 7 additions & 0 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import type { Site, SocialObjects } from "./types";

const BASE_URL = ((process.env.BASE_URL || import.meta.env.BASE_URL) as string);

const url = BASE_URL.startsWith('http') ? BASE_URL : 'https://markket.place/';

console.log({ url, BASE_URL });

/**
* @type {{[string]: string}} Global Configuration attributes for the markket instance
*/
Expand All @@ -11,6 +17,7 @@ export const markketplace = {
accent: import.meta.env.COLOR_ACCENT as string || '#38b2ac',
},
POSTHOG_ID: import.meta.env.POSTHOG_ID as string || '',
url,
};

/**
Expand Down

0 comments on commit 16a10f6

Please sign in to comment.