Desplegar un projecte

·veu .md ↗·chatgpt ↗·claude ↗

Per desplegar el teu projecte a Netlify, segueix aquests passos:

  1. Inicia sessió
  2. Connecta el teu repositori
    • Fes clic a "Add new site"
    • Selecciona "Import an existing project"
    • Connecta GitHub, GitLab o Bitbucket
    • Tria el teu repositori
  3. Configuració
    TeamLLOS
    Project namenombreweb
    Branch to deploymain
    Base directoryfrontend
    Build commandpnpm run generate
    Publish directoryfrontend/dist
    Functions directoryfrontend/dist
    KeyValue
    APP_ENVproduction
    SANITY_PROJECT_IDxxxxxxxx
    SANITY_PROJECT_DATASETproduction
    SANITY_API_VERSION2024-02-01
    NUXT_PUBLIC_SITE_URLhttps://nombreweb.netlify.app

    Un cop afegides les variables d'entorn, fes clic a Deploy site
  4. Espera el desplegament
    • Netlify instal·larà dependències, executarà el build i publicarà el teu lloc.
    • Quan acabi, veuràs la URL del lloc.