mirror of
https://github.com/coollabsio/coolify-examples.git
synced 2026-02-18 21:38:58 +00:00
hello
This commit is contained in:
19
nuxt/static/build.sh
Executable file
19
nuxt/static/build.sh
Executable file
@@ -0,0 +1,19 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Validate SSH key
|
||||
if [ -n "$KEY" ]; then
|
||||
echo "Validating SSH key..."
|
||||
echo "$KEY" | ssh-keygen -l -f - > /dev/null 2>&1
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "✓ SSH key is valid"
|
||||
else
|
||||
echo "✗ SSH key is invalid"
|
||||
exit 1
|
||||
fi
|
||||
else
|
||||
echo "⚠ KEY environment variable not set, skipping validation"
|
||||
fi
|
||||
|
||||
# Continue with build
|
||||
nuxt build
|
||||
@@ -3,7 +3,7 @@
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "nuxt build",
|
||||
"build": "./build.sh",
|
||||
"dev": "nuxt dev",
|
||||
"generate": "nuxt generate",
|
||||
"preview": "nuxt preview",
|
||||
|
||||
Reference in New Issue
Block a user