Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/svelte.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,7 @@ jobs:
workspace_name: '@launchdarkly/svelte-client-sdk'
workspace_path: packages/sdk/svelte
should_build_docs: false
- name: Build example
run: |
yarn workspaces focus ld-svelte-example
yarn workspaces foreach -pR --topological-dev --from 'ld-svelte-example' run build
4 changes: 3 additions & 1 deletion packages/sdk/svelte/example/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts">
import { LDProvider } from '@launchdarkly/svelte-client-sdk';
import { PUBLIC_LD_CLIENT_ID } from '$env/static/public';
import * as envvars from '$env/static/public';

const { PUBLIC_LD_CLIENT_ID = '' } = envvars;

const context = {
kind: 'user',
Expand Down
4 changes: 3 additions & 1 deletion packages/sdk/svelte/example/src/routes/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<script lang="ts">
import { LDFlag } from '@launchdarkly/svelte-client-sdk';
import { PUBLIC_LD_FLAG_KEY } from '$env/static/public';
import * as envvars from '$env/static/public';

const { PUBLIC_LD_FLAG_KEY = 'sample-feature' } = envvars;
</script>

<style>
Expand Down