Skip to content

Commit 7a2cc09

Browse files
committed
redirect /index.sql to /
1 parent c2ce9d5 commit 7a2cc09

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

examples/official-site/index.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
select 'http_header' as component, 'public, max-age=600, stale-while-revalidate=3600, stale-if-error=86400' as "Cache-Control";
2+
select 'redirect' as component, '/' as link where sqlpage.path() <> '/';
23

34
-- Fetch the page title and header from the database
45
select 'dynamic' as component, properties FROM example WHERE component = 'shell' LIMIT 1;

0 commit comments

Comments
 (0)