Skip to content

Instantly share code, notes, and snippets.

@drblue
Last active June 10, 2025 09:01
Show Gist options
  • Save drblue/78f807a1b612db3ce70e129daf4fc092 to your computer and use it in GitHub Desktop.
Save drblue/78f807a1b612db3ce70e129daf4fc092 to your computer and use it in GitHub Desktop.

Revisions

  1. drblue revised this gist May 23, 2024. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion netlify.toml
    Original file line number Diff line number Diff line change
    @@ -3,7 +3,7 @@
    # See <https://docs.netlify.com/configure-builds/file-based-configuration/>
    # for more info on configuring this file.
    [build]
    command = "vite build"
    command = "tsc && vite build"
    functions = "netlify/functions"
    publish = "dist"

  2. drblue created this gist May 22, 2024.
    20 changes: 20 additions & 0 deletions netlify.toml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    # Netlify Config for Vite React apps
    #
    # See <https://docs.netlify.com/configure-builds/file-based-configuration/>
    # for more info on configuring this file.
    [build]
    command = "vite build"
    functions = "netlify/functions"
    publish = "dist"

    [[redirects]]
    from = "/*"
    to = "/index.html"
    status = 200

    ## (optional) Settings for Netlify Dev
    ## https://github.com/netlify/cli/blob/main/docs/netlify-dev.md#project-detection
    #[dev]
    # command = "yarn start" # Command to start your dev server
    # port = 3000 # Port that the dev server will be listening on
    # publish = "dist" # Folder with the static content for _redirect file