Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

static-site: fix formatting of sst-env.d.ts with Vite env vars #1042

Open
wants to merge 2 commits into
base: dev
Choose a base branch
from

Conversation

paolostyle
Copy link
Contributor

@paolostyle paolostyle commented Sep 11, 2024

Before:

/// <reference types="vite/client" />
  interface ImportMetaEnv {
    readonly ENV_ONE: string
  readonly ENV_TWO: string
  readonly ENV_THREE: string
  }
  interface ImportMeta {
    readonly env: ImportMetaEnv
  }

After:

/* This file is auto-generated by SST. Do not edit. */
/* tslint:disable */
/* eslint-disable */
/// <reference types="vite/client" />
interface ImportMetaEnv {
  readonly ENV_ONE: string
  readonly ENV_TWO: string
  readonly ENV_THREE: string
}
interface ImportMeta {
  readonly env: ImportMetaEnv
}

Let me know if you think I should also add the comments at the top as for the regular sst-env.d.ts. Updated.

image

@jayair
Copy link
Contributor

jayair commented Sep 13, 2024

lol this is good

Yeah the comments would help.

@paolostyle
Copy link
Contributor Author

@jayair I added the comments

@jayair
Copy link
Contributor

jayair commented Sep 20, 2024

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants