Skip to content

Commit

Permalink
final before first deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
AliSinaDevelo committed Aug 5, 2024
1 parent 1b0ece2 commit a300d54
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ jobs:
- name: Install dependencies
run: npm install


- name: Build project
run: npm run build

Expand Down
8 changes: 6 additions & 2 deletions svelte.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import adapter from '@sveltejs/adapter-auto';
import adapter from '@sveltejs/adapter-static'; // or another appropriate adapter
import { vitePreprocess } from '@sveltejs/vite-plugin-svelte';

/** @type {import('@sveltejs/kit').Config} */
const config = {
kit: {
adapter: adapter(),
adapter: adapter({
pages: 'build', // Ensure this matches the publish_dir in your GitHub Actions config
assets: 'build',
fallback: null
}),
paths: {
base: process.env.NODE_ENV === 'development' ? '' : process.env.BASE_PATH,
}
Expand Down

0 comments on commit a300d54

Please sign in to comment.