Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
run: make install

- name: Build the website
run: make build
run: make build MODE=production

- name: Set up SSH key
uses: webfactory/ssh-agent@v0.9.1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Build the website
run:
make build PREVIEW=true
make build MODE=preview
SITE_URL="https://${BRANCH_NAME}.ep-preview.click"

- name: Set up SSH key
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ build:
commands:
- npm install -g pnpm@latest-10
- make install
- make build PREVIEW=true SITE_URL=$READTHEDOCS_CANONICAL_URL
- make build MODE=preview SITE_URL=$READTHEDOCS_CANONICAL_URL
- mkdir -p $READTHEDOCS_OUTPUT/html
- cd dist && cp -r * $READTHEDOCS_OUTPUT/html
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ check:
pnpm run astro check

build:
pnpm build
pnpm run astro build --mode $(MODE)

preview: RELEASES_DIR = $(VPS_PREVIEW_PATH)/$(SAFE_BRANCH)/releases
preview: TARGET = $(RELEASES_DIR)/$(TIMESTAMP)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/robots.txt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ Allow: /
Sitemap: https://ep2025.europython.eu/sitemap-index.xml
`;

const isPreview = String(import.meta.env.PREVIEW).toLowerCase() === "true";
const isPreview = import.meta.env.MODE == "preview";
export const GET: APIRoute = () =>
new Response(isPreview ? previewRobots : prodRobots);