mirror of
https://github.com/ArthurDanjou/artsite.git
synced 2026-01-14 15:54:13 +01:00
Compare commits
3 Commits
d18b9094d5
...
b476033a97
| Author | SHA1 | Date | |
|---|---|---|---|
| b476033a97 | |||
| 197c15619e | |||
| 0f02b8609a |
11
.github/workflows/cloudflare.yml
vendored
11
.github/workflows/cloudflare.yml
vendored
@@ -48,23 +48,16 @@ jobs:
|
||||
- name: Determine Deployment Target
|
||||
id: target
|
||||
run: |
|
||||
# J'utilise des quotes pour éviter les erreurs si la branche contient des espaces
|
||||
if [ "${{ github.ref_name }}" = "main" ] || [ "${{ github.ref_name }}" = "master" ]; then
|
||||
echo "Current branch is Production: ${{ github.ref_name }}"
|
||||
# Production : Aucun flag, on utilise la config racine par défaut
|
||||
echo "env_flag=" >> $GITHUB_OUTPUT
|
||||
echo "env_name=Production" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "Current branch is Preview: ${{ github.ref_name }}"
|
||||
# Preview : On surcharge avec l'environnement preview
|
||||
echo "env_flag=--env preview" >> $GITHUB_OUTPUT
|
||||
echo "env_name=Preview" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: 🔍 Debug Info
|
||||
run: |
|
||||
echo "Branche détectée : ${{ github.ref_name }}"
|
||||
echo "Flag Wrangler calculé : '${{ steps.target.outputs.env_flag }}'"
|
||||
echo "Nom Environnement : ${{ steps.target.outputs.env_name }}"
|
||||
|
||||
- name: Publish to Cloudflare Workers
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
|
||||
@@ -117,6 +117,7 @@ export default defineNuxtConfig({
|
||||
|
||||
nitro: {
|
||||
preset: 'cloudflare_module',
|
||||
|
||||
experimental: {
|
||||
openAPI: true
|
||||
},
|
||||
|
||||
5
worker-configuration.d.ts
vendored
5
worker-configuration.d.ts
vendored
@@ -1,10 +1,7 @@
|
||||
/* eslint-disable */
|
||||
// Generated by Wrangler by running `wrangler types` (hash: 8c48032b4b2801cdbac6e8dbc9d26203)
|
||||
// Generated by Wrangler by running `wrangler types` (hash: 373e9a05bf207b93549ab53665d07e4b)
|
||||
// Runtime types generated with workerd@1.20251210.0 2025-12-13 nodejs_compat
|
||||
declare namespace Cloudflare {
|
||||
interface GlobalProps {
|
||||
mainModule: typeof import("./.output/server/index");
|
||||
}
|
||||
interface Env {
|
||||
CACHE: KVNamespace;
|
||||
STUDIO_GITHUB_CLIENT_ID: string;
|
||||
|
||||
Reference in New Issue
Block a user