Skip to content

Commit 918dc07

Browse files
committed
fix: set auth to be required on staging and prod
1 parent 304195c commit 918dc07

2 files changed

Lines changed: 2 additions & 9 deletions

File tree

deps/publish/src/logseq/publish/publish.js

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -429,13 +429,6 @@ const initSearch = () => {
429429
activeItems = [];
430430
};
431431

432-
const renderSection = (title) => {
433-
const header = document.createElement("div");
434-
header.className = "publish-search-section";
435-
header.textContent = title;
436-
return header;
437-
};
438-
439432
const renderResults = (query, data) => {
440433
const pages = data?.pages || [];
441434
const blocks = data?.blocks || [];

deps/publish/worker/wrangler.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ name = "logseq-publish-staging"
3434
COGNITO_JWKS_URL = "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_dtagLnju8/.well-known/jwks.json"
3535
COGNITO_ISSUER = "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_dtagLnju8"
3636
COGNITO_CLIENT_ID = "69cs1lgme7p8kbgld8n5kseii6"
37-
DEV_SKIP_AUTH = "true"
37+
DEV_SKIP_AUTH = "false"
3838

3939
[[env.staging.durable_objects.bindings]]
4040
name = "PUBLISH_META_DO"
@@ -55,7 +55,7 @@ name = "logseq-publish-prod"
5555
COGNITO_JWKS_URL = "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_dtagLnju8/.well-known/jwks.json"
5656
COGNITO_ISSUER = "https://cognito-idp.us-east-1.amazonaws.com/us-east-1_dtagLnju8"
5757
COGNITO_CLIENT_ID = "69cs1lgme7p8kbgld8n5kseii6"
58-
DEV_SKIP_AUTH = "true"
58+
DEV_SKIP_AUTH = "false"
5959

6060
[[env.prod.durable_objects.bindings]]
6161
name = "PUBLISH_META_DO"

0 commit comments

Comments
 (0)