Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.
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
27 changes: 13 additions & 14 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,29 +1,28 @@

#create environment file name as .env
#and place following configuration data.


VITE_CONTENTSTACK_API_KEY=your_stack_api_key
VITE_CONTENTSTACK_DELIVERY_TOKEN=your_delivery_token
VITE_CONTENTSTACK_ENVIRONMENT=your_environment_token
VITE_CONTENTSTACK_ENVIRONMENT=your_environment_name

# Below config options are for enabling live preview/live edit tags for the starter app

VITE_CONTENTSTACK_API_HOST= for(NA: api.contentstack.io, EU: eu-api.contentstack.com)
VITE_CONTENTSTACK_MANAGEMENT_TOKEN = your_management_token
VITE_CONTENTSTACK_PREVIEW_HOST= rest-preview.contentstack.com
VITE_CONTENTSTACK_PREVIEW_TOKEN= your_live_preview_token
VITE_CONTENTSTACK_APP_HOST=app.contentstack.com
VITE_CONTENTSTACK_API_HOST=api.contentstack.io
VITE_CONTENTSTACK_LIVE_PREVIEW= true
VITE_CONTENTSTACK_LIVE_EDIT_TAGS= false


# VITE_CONTENTSTACK_LIVE_PREVIEW=true by default set VITE_CONTENTSTACK_LIVE_PREVIEW=false to disable live preview
# For enabling live editing tags for this project set VITE_CONTENTSTACK_LIVE_EDIT_TAGS=true by default it is set to false
# For EU region add VITE_CONTENTSTACK_APP_HOST=eu.app.contentstack.com
# For setting custom api host add VITE_CONTENTSTACK_API_HOST=for(NA: api.contentstack.io, EU: eu-api.contentstack.com)

# # By default branch=main, if a branch is not provided
# VITE_CONTENTSTACK_BRANCH=your branch name
# VITE_CONTENTSTACK_REGION=eu
# VITE_CONTENTSTACK_BRANCH=main

# By default region=us, if a region is not provided
# VITE_CONTENTSTACK_REGION=your region name
### NOTE:
# VITE_CONTENTSTACK_API_HOST- For setting custom api host for contentstack sdk
# VITE_CONTENTSTACK_REGION- For setting custom region for contentstack sdk default is us
# VITE_CONTENTSTACK_BRANCH- For setting custom branch for contentstack sdk default is main

SKIP_PREFLIGHT_CHECK=true
# Setting Live Preview URL's
# VITE_CONTENTSTACK_PREVIEW_HOST- For eu region use eu-rest-preview.contentstack.com/azure-na-rest-preview.contentstack.com/azure-eu-rest-preview.contentstack.com
39 changes: 21 additions & 18 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,23 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
}
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript'),
'svelte3/ignore-warnings': (warning) => {
return warning.code === 'a11y-click-events-have-key-events';
}
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
},
env: {
browser: true,
es2017: true,
node: true
}
};
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2023 Contentstack
Copyright (c) 2024 Contentstack

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
Loading