Wizzas commited on
Commit
41b9f9b
·
verified ·
1 Parent(s): e1a6941

DefectRAG phase 5: incremental real-model application migration

Browse files
deployment/space/publish.py CHANGED
@@ -18,6 +18,8 @@ def main():
18
  if args.phase>=4:
19
  confirmation=OUT/'migration-confirmed.json'
20
  assert confirmation.exists() and json.loads(confirmation.read_text()).get('user_confirmed_manual_execution'), 'Wait for the user to confirm manual SQL execution before enabling staff persistence.'
 
 
21
  files = {}
22
  for relative in ('docs/THIRD_PARTY_NOTICES.md','docs/FRONTEND_LICENSES.txt','models/BGE-LICENSE.txt'):
23
  path=ROOT/relative
 
18
  if args.phase>=4:
19
  confirmation=OUT/'migration-confirmed.json'
20
  assert confirmation.exists() and json.loads(confirmation.read_text()).get('user_confirmed_manual_execution'), 'Wait for the user to confirm manual SQL execution before enabling staff persistence.'
21
+ from deployment.space.supabase_repository import read_public_config
22
+ read_public_config(OUT/'ui-dist/config.js') # Refuse a blank example before changing a working Space.
23
  files = {}
24
  for relative in ('docs/THIRD_PARTY_NOTICES.md','docs/FRONTEND_LICENSES.txt','models/BGE-LICENSE.txt'):
25
  path=ROOT/relative
frontend/dist/config.js CHANGED
@@ -1,5 +1,5 @@
1
  // Public settings only. Never put a service-role key or password in this file.
2
  window.DEFECTRAG_PUBLIC_CONFIG = {
3
- supabaseUrl: '',
4
- supabasePublishableKey: ''
5
  };
 
1
  // Public settings only. Never put a service-role key or password in this file.
2
  window.DEFECTRAG_PUBLIC_CONFIG = {
3
+ supabaseUrl: 'https://zrzqpbcomlorfzszolrs.supabase.co',
4
+ supabasePublishableKey: 'sb_publishable_ff0gl6l7ZWb_zKcklF6e3g_VT7Qi7FF'
5
  };