Skip to content

Commit

Permalink
Trying workaround for .env configuration detailed here withastro/astr…
Browse files Browse the repository at this point in the history
  • Loading branch information
harrisoncramer committed Jan 28, 2023
1 parent 4709606 commit 264b1d5
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 157 deletions.
165 changes: 11 additions & 154 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,164 +1,21 @@
################
## CONTENTFUL ##
################

contentful/
export.json
notes.md

##############
### GATSBY ###
##############

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
contentful-import-error-log-*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Dependency directories
node_modules/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# dotenv environment variable files
.env*

# gatsby files
# build output
dist/
.output/
.cache/
public

# Mac files
.DS_Store


#################
### TERRAFORM ###
#################

# Local .terraform directories
**/.terraform/*

# .tfstate files
*.tfstate
*.tfstate.*
*tfstate*

# Crash log files
crash.log

# Exclude all .tfvars files, which are likely to contain sentitive data, such as
# password, private keys, and other secrets. These should not be part of version
# control as they are data points which are potentially sensitive and subject
# to change depending on the environment.
*.tfvars

# Ignore override files as they are usually used to override resources locally and so
# are not checked in
override.tf
override.tf.json
*_override.tf
*_override.tf.json

# Include override files you do wish to add to version control using negated pattern
# !example_override.tf

# Include tfplan files to ignore the plan output of command: terraform plan -out=tfplan
# example: *tfplan*

# Ignore CLI configuration files
.terraformrc
terraform.rc

# Other Text Files
notes.txt
# dependencies
node_modules/

# Logs
logs
*.log
# logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn integrity file
.yarn-integrity

# dotenv environment variables file
.env*

# Gatsby build folder
public

# Gatsby cache folder
.cache

# Contentful config file
.contentful.json

# Local Netlify folder
.netlify
# environment variables
.env
.env.production

# System files
# macOS-specific files
.DS_Store
Thumbs.db
5 changes: 4 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export default defineConfig({
sitemap(),
image({
serviceEntryPoint: '@astrojs/image/sharp'
})
}),
],
'process.env.CONTENTFUL_SPACE_ID': JSON.stringify(process.env.CONTENTFUL_SPACE_ID),
'process.env.CONTENTFUL_DELIVERY_TOKEN': JSON.stringify(process.env.CONTENTFUL_DELIVERY_TOKEN),
'process.env.CONTENTFUL_PREVIEW_TOKEN': JSON.stringify(process.env.CONTENTFUL_PREVIEW_TOKEN),
});
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added public/favicon.ico
Binary file not shown.
Binary file added public/fonts/nugelo.otf
Binary file not shown.

0 comments on commit 264b1d5

Please sign in to comment.