Skip to content

Commit

Permalink
Github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jhonlz09 committed Apr 12, 2024
1 parent 2ce0e44 commit ca365f9
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,22 @@ const SERVER_PORT = 3000;
const LOCALHOST_URL = `http://localhost:${SERVER_PORT}`;
const LIVE_URL = "https://Jhonlz09.github.io.git";

const SCRIPT = process.env.npm_lifecycle_script || "";
const isBuild = SCRIPT.includes("astro build");

let BASE_URL = LOCALHOST_URL;

if(isBuild){
BASE_URL = LIVE_URL;
}

// https://astro.build/config
export default defineConfig({
site: 'https://Jhonlz09.github.io.git'
server : {port: SERVER_PORT},
site: BASE_URL,
integrations:[
tailwind({
config: {applyBasesStyles: false}
})
]
});

0 comments on commit ca365f9

Please sign in to comment.