diff --git a/crates/pgt_configuration/src/lib.rs b/crates/pgt_configuration/src/lib.rs index c34f808b..aaf5ac07 100644 --- a/crates/pgt_configuration/src/lib.rs +++ b/crates/pgt_configuration/src/lib.rs @@ -84,10 +84,7 @@ impl PartialConfiguration { /// Returns the initial configuration. pub fn init() -> Self { Self { - // TODO: Update this once we have a static url - schema: Some(format!( - "https://supabase-community.github.io/postgres_lsp/schemas/{VERSION}/schema.json" - )), + schema: Some(format!("https://pgtools.dev/schemas/{VERSION}/schema.json")), files: Some(PartialFilesConfiguration { ignore: Some(Default::default()), ..Default::default() diff --git a/crates/pgt_workspace/src/configuration.rs b/crates/pgt_workspace/src/configuration.rs index 9ecc75b4..1daa6bce 100644 --- a/crates/pgt_workspace/src/configuration.rs +++ b/crates/pgt_workspace/src/configuration.rs @@ -171,15 +171,13 @@ pub fn create_config( // we now check if pglt is installed inside `node_modules` and if so, we use the schema from there if VERSION == "0.0.0" { - let schema_path = Path::new("./node_modules/@pglt/pglt/schema.json"); + let schema_path = Path::new("./node_modules/@postgrestools/postgrestools/schema.json"); let options = OpenOptions::default().read(true); if fs.open_with_options(schema_path, options).is_ok() { configuration.schema = schema_path.to_str().map(String::from); } } else { - configuration.schema = Some(format!( - "https://supabase-community.github.io/postgres_lsp/schemas/{VERSION}/schema.json" - )); + configuration.schema = Some(format!("https://pgtools.dev/schemas/{VERSION}/schema.json")); } let contents = serde_json::to_string_pretty(&configuration) diff --git a/docs/index.md b/docs/index.md index 92afa339..1a19bcd2 100644 --- a/docs/index.md +++ b/docs/index.md @@ -41,7 +41,7 @@ After running the `init` command, you’ll have a `postgrestools.jsonc` file in ```json { - "$schema": "https://supabase-community.github.io/postgres_lsp/schemas/0.0.0/schema.json", + "$schema": "https://pgtools.dev/schemas/0.0.0/schema.json", "vcs": { "enabled": false, "clientKind": "git",